mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 05:35:39 +00:00
target/xtensa: Remove target_ulong use in xtensa_get_tb_cpu_state()
Since commit bb5de52524 ("target: Widen pc/cs_base in
cpu_get_tb_cpu_state"), cpu_get_tb_cpu_state() expects
a uint64_t type for cs_base.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20251008051529.86378-3-philmd@linaro.org>
This commit is contained in:
@@ -59,13 +59,13 @@ static TCGTBCPUState xtensa_get_tb_cpu_state(CPUState *cs)
|
||||
{
|
||||
CPUXtensaState *env = cpu_env(cs);
|
||||
uint32_t flags = 0;
|
||||
target_ulong cs_base = 0;
|
||||
uint64_t cs_base = 0;
|
||||
|
||||
flags |= xtensa_get_ring(env);
|
||||
if (env->sregs[PS] & PS_EXCM) {
|
||||
flags |= XTENSA_TBFLAG_EXCM;
|
||||
} else if (xtensa_option_enabled(env->config, XTENSA_OPTION_LOOP)) {
|
||||
target_ulong lend_dist =
|
||||
uint64_t lend_dist =
|
||||
env->sregs[LEND] - (env->pc & -(1u << TARGET_PAGE_BITS));
|
||||
|
||||
/*
|
||||
@@ -83,7 +83,7 @@ static TCGTBCPUState xtensa_get_tb_cpu_state(CPUState *cs)
|
||||
* for the TB that contains this instruction.
|
||||
*/
|
||||
if (lend_dist < (1u << TARGET_PAGE_BITS) + env->config->max_insn_size) {
|
||||
target_ulong lbeg_off = env->sregs[LEND] - env->sregs[LBEG];
|
||||
uint64_t lbeg_off = env->sregs[LEND] - env->sregs[LBEG];
|
||||
|
||||
cs_base = lend_dist;
|
||||
if (lbeg_off < 256) {
|
||||
|
||||
Reference in New Issue
Block a user