From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, "Laurent Vivier" <laurent@vivier.eu>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH v2 05/11] target/arm: Convert CPUARMState::eabi to boolean
Date: Mon, 6 Feb 2023 23:34:56 +0100 [thread overview]
Message-ID: <20230206223502.25122-6-philmd@linaro.org> (raw)
In-Reply-To: <20230206223502.25122-1-philmd@linaro.org>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
linux-user/arm/cpu_loop.c | 4 ++--
linux-user/user-internals.h | 2 +-
target/arm/cpu.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index c0790f3246..a992423257 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -356,7 +356,7 @@ void cpu_loop(CPUARMState *env)
break;
case EXCP_SWI:
{
- env->eabi = 1;
+ env->eabi = true;
/* system call */
if (env->thumb) {
/* Thumb is always EABI style with syscall number in r7 */
@@ -382,7 +382,7 @@ void cpu_loop(CPUARMState *env)
* > 0xfffff and are handled below as out-of-range.
*/
n ^= ARM_SYSCALL_BASE;
- env->eabi = 0;
+ env->eabi = false;
}
}
diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h
index 0280e76add..3576da413f 100644
--- a/linux-user/user-internals.h
+++ b/linux-user/user-internals.h
@@ -135,7 +135,7 @@ void print_termios(void *arg);
#ifdef TARGET_ARM
static inline int regpairs_aligned(CPUArchState *cpu_env, int num)
{
- return cpu_env->eabi == 1;
+ return cpu_env->eabi;
}
#elif defined(TARGET_MIPS) && defined(TARGET_ABI_MIPSO32)
static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; }
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 7bc97fece9..05b9012cee 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -723,7 +723,7 @@ typedef struct CPUArchState {
#if defined(CONFIG_USER_ONLY)
/* For usermode syscall translation. */
- int eabi;
+ bool eabi;
#endif
struct CPUBreakpoint *cpu_breakpoint[16];
--
2.38.1
next prev parent reply other threads:[~2023-02-06 22:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 22:34 [PATCH v2 00/11] target/arm: Housekeeping around NVIC Philippe Mathieu-Daudé
2023-02-06 22:34 ` [PATCH v2 01/11] hw/intc/armv7m_nvic: Use OBJECT_DECLARE_SIMPLE_TYPE() macro Philippe Mathieu-Daudé
2023-02-07 22:59 ` Richard Henderson
2023-02-06 22:34 ` [PATCH v2 02/11] target/arm: Simplify arm_v7m_mmu_idx_for_secstate() for user emulation Philippe Mathieu-Daudé
2023-02-07 23:07 ` Richard Henderson
2023-02-06 22:34 ` [PATCH v2 03/11] target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scope Philippe Mathieu-Daudé
2023-02-07 23:08 ` Richard Henderson
2023-02-06 22:34 ` [PATCH v2 04/11] target/arm: Constify ID_PFR1 on user emulation Philippe Mathieu-Daudé
2023-02-06 22:34 ` Philippe Mathieu-Daudé [this message]
2023-02-07 23:09 ` [PATCH v2 05/11] target/arm: Convert CPUARMState::eabi to boolean Richard Henderson
2023-02-06 22:34 ` [PATCH v2 06/11] target/arm: Avoid resetting CPUARMState::eabi field Philippe Mathieu-Daudé
2023-02-06 22:34 ` [PATCH v2 07/11] target/arm: Restrict CPUARMState::gicv3state to sysemu Philippe Mathieu-Daudé
2023-02-06 22:34 ` [PATCH v2 08/11] target/arm: Restrict CPUARMState::arm_boot_info " Philippe Mathieu-Daudé
2023-02-06 22:35 ` [PATCH v2 09/11] target/arm: Restrict CPUARMState::nvic " Philippe Mathieu-Daudé
2023-02-07 23:10 ` Richard Henderson
2023-02-06 22:35 ` [PATCH v2 10/11] target/arm: Store CPUARMState::nvic as NVICState* Philippe Mathieu-Daudé
2023-02-07 23:11 ` Richard Henderson
2023-02-06 22:35 ` [PATCH v2 11/11] target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h' Philippe Mathieu-Daudé
2023-02-10 16:02 ` [PATCH v2 00/11] target/arm: Housekeeping around NVIC Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230206223502.25122-6-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=laurent@vivier.eu \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).