diff options
author | Richard Henderson | 2022-08-15 22:16:06 +0200 |
---|---|---|
committer | Richard Henderson | 2022-10-04 21:13:12 +0200 |
commit | fbf59aad178d98afe193fa872a2d880266a75269 (patch) | |
tree | 05d5fb4a7118f1a70eb0a09a1269f859f822502e /target/hppa | |
parent | hw/core: Add CPUClass.get_pc (diff) | |
download | qemu-fbf59aad178d98afe193fa872a2d880266a75269.tar.gz qemu-fbf59aad178d98afe193fa872a2d880266a75269.tar.xz qemu-fbf59aad178d98afe193fa872a2d880266a75269.zip |
accel/tcg: Introduce tb_pc and log_pc
The availability of tb->pc will shortly be conditional.
Introduce accessor functions to minimize ifdefs.
Pass around a known pc to places like tcg_gen_code,
where the caller must already have the value.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa')
-rw-r--r-- | target/hppa/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c index e25d3db6d5..e677ca09d4 100644 --- a/target/hppa/cpu.c +++ b/target/hppa/cpu.c @@ -49,7 +49,7 @@ static void hppa_cpu_synchronize_from_tb(CPUState *cs, HPPACPU *cpu = HPPA_CPU(cs); #ifdef CONFIG_USER_ONLY - cpu->env.iaoq_f = tb->pc; + cpu->env.iaoq_f = tb_pc(tb); cpu->env.iaoq_b = tb->cs_base; #else /* Recover the IAOQ values from the GVA + PRIV. */ @@ -59,7 +59,7 @@ static void hppa_cpu_synchronize_from_tb(CPUState *cs, int32_t diff = cs_base; cpu->env.iasq_f = iasq_f; - cpu->env.iaoq_f = (tb->pc & ~iasq_f) + priv; + cpu->env.iaoq_f = (tb_pc(tb) & ~iasq_f) + priv; if (diff) { cpu->env.iaoq_b = cpu->env.iaoq_f + diff; } |