mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/arm: Move mode specific TB flags to tb->cs_base
Now that we have all of the proper macros defined, expanding the CPUARMTBFlags structure and populating the two TB fields is relatively simple. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210419202257.161730-7-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
3902bfc6f0
commit
a378206a20
3 changed files with 35 additions and 26 deletions
|
@ -13256,9 +13256,11 @@ static inline void assert_hflags_rebuild_correctly(CPUARMState *env)
|
|||
CPUARMTBFlags c = env->hflags;
|
||||
CPUARMTBFlags r = rebuild_hflags_internal(env);
|
||||
|
||||
if (unlikely(c.flags != r.flags)) {
|
||||
fprintf(stderr, "TCG hflags mismatch (current:0x%08x rebuilt:0x%08x)\n",
|
||||
c.flags, r.flags);
|
||||
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",
|
||||
c.flags, c.flags2, r.flags, r.flags2);
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
@ -13269,7 +13271,6 @@ void cpu_get_tb_cpu_state(CPUARMState *env, target_ulong *pc,
|
|||
{
|
||||
CPUARMTBFlags flags;
|
||||
|
||||
*cs_base = 0;
|
||||
assert_hflags_rebuild_correctly(env);
|
||||
flags = env->hflags;
|
||||
|
||||
|
@ -13338,6 +13339,7 @@ void cpu_get_tb_cpu_state(CPUARMState *env, target_ulong *pc,
|
|||
}
|
||||
|
||||
*pflags = flags.flags;
|
||||
*cs_base = flags.flags2;
|
||||
}
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue