mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/arm/cpu: flags2 is always uint64_t
Do not rely on target dependent type, but use a fixed type instead. Since the original type is unsigned, it is safe to extend its size without any side effect. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250325045915.994760-21-pierrick.bouvier@linaro.org>
This commit is contained in:
committed by
Richard Henderson
parent
a725f37102
commit
9fac39750d
+4
-6
@@ -194,7 +194,7 @@ typedef struct ARMPACKey {
|
||||
/* See the commentary above the TBFLAG field definitions. */
|
||||
typedef struct CPUARMTBFlags {
|
||||
uint32_t flags;
|
||||
target_ulong flags2;
|
||||
uint64_t flags2;
|
||||
} CPUARMTBFlags;
|
||||
|
||||
typedef struct ARMMMUFaultInfo ARMMMUFaultInfo;
|
||||
@@ -2968,11 +2968,9 @@ uint64_t arm_sctlr(CPUARMState *env, int el);
|
||||
* We collect these two parts in CPUARMTBFlags where they are named
|
||||
* flags and flags2 respectively.
|
||||
*
|
||||
* The flags that are shared between all execution modes, TBFLAG_ANY,
|
||||
* are stored in flags. The flags that are specific to a given mode
|
||||
* are stores in flags2. Since cs_base is sized on the configured
|
||||
* address size, flags2 always has 64-bits for A64, and a minimum of
|
||||
* 32-bits for A32 and M32.
|
||||
* The flags that are shared between all execution modes, TBFLAG_ANY, are stored
|
||||
* in flags. The flags that are specific to a given mode are stored in flags2.
|
||||
* flags2 always has 64-bits, even though only 32-bits are used for A32 and M32.
|
||||
*
|
||||
* The bits for 32-bit A-profile and M-profile partially overlap:
|
||||
*
|
||||
|
||||
@@ -506,8 +506,8 @@ void assert_hflags_rebuild_correctly(CPUARMState *env)
|
||||
|
||||
if (unlikely(c.flags != r.flags || c.flags2 != r.flags2)) {
|
||||
fprintf(stderr, "TCG hflags mismatch "
|
||||
"(current:(0x%08x,0x" TARGET_FMT_lx ")"
|
||||
" rebuilt:(0x%08x,0x" TARGET_FMT_lx ")\n",
|
||||
"(current:(0x%08x,0x%016" PRIx64 ")"
|
||||
" rebuilt:(0x%08x,0x%016" PRIx64 ")\n",
|
||||
c.flags, c.flags2, r.flags, r.flags2);
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user