diff options
| author | Anton Johansson <anjo@rev.ng> | 2023-02-27 14:51:54 +0100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-01 07:33:17 -1000 |
| commit | 420bf265bea22405df81f486e5e9ffd62e3bc3df (patch) | |
| tree | 4b27ef83816c0d0b49170b12fb21ecaa9104bf21 /target/mips/tcg/exception.c | |
| parent | 1aca4a2b319f5bf3734a78c41958d6a246df8778 (diff) | |
| download | focaccia-qemu-420bf265bea22405df81f486e5e9ffd62e3bc3df.tar.gz focaccia-qemu-420bf265bea22405df81f486e5e9ffd62e3bc3df.zip | |
target/mips: Replace `tb_pc()` with `tb->pc`
Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230227135202.9710-20-anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips/tcg/exception.c')
| -rw-r--r-- | target/mips/tcg/exception.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/mips/tcg/exception.c b/target/mips/tcg/exception.c index 96e61170e6..da49a93912 100644 --- a/target/mips/tcg/exception.c +++ b/target/mips/tcg/exception.c @@ -82,7 +82,8 @@ void mips_cpu_synchronize_from_tb(CPUState *cs, const TranslationBlock *tb) MIPSCPU *cpu = MIPS_CPU(cs); CPUMIPSState *env = &cpu->env; - env->active_tc.PC = tb_pc(tb); + tcg_debug_assert(!(cs->tcg_cflags & CF_PCREL)); + env->active_tc.PC = tb->pc; env->hflags &= ~MIPS_HFLAG_BMASK; env->hflags |= tb->flags & MIPS_HFLAG_BMASK; } |