aboutsummaryrefslogtreecommitdiff
path: root/target/rx/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-17 09:51:28 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-04-21 10:04:33 -0700
commit3626a3fe37e993a86dc7cc4a0d3fb0d6a92c667d (patch)
tree0090d62f0513884f168ede3b64c0987c8a83143b /target/rx/cpu.h
parent4341631e4d94e63c85de7215a6228fbf62293ec4 (diff)
target/rx: Store PSW.U in tb->flags
With this, we don't need movcond to determine which stack pointer is current. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp> Message-Id: <20220417165130.695085-3-richard.henderson@linaro.org>
Diffstat (limited to 'target/rx/cpu.h')
-rw-r--r--target/rx/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/rx/cpu.h b/target/rx/cpu.h
index 1c267f83bf..5655dffeff 100644
--- a/target/rx/cpu.h
+++ b/target/rx/cpu.h
@@ -149,6 +149,7 @@ static inline void cpu_get_tb_cpu_state(CPURXState *env, target_ulong *pc,
*pc = env->pc;
*cs_base = 0;
*flags = FIELD_DP32(0, PSW, PM, env->psw_pm);
+ *flags = FIELD_DP32(*flags, PSW, U, env->psw_u);
}
static inline int cpu_mmu_index(CPURXState *env, bool ifetch)