diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-24 20:08:21 +1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-10-26 11:11:28 +1000 |
commit | 4060474284cd6c7012c50dda743c6c151b92be87 (patch) | |
tree | 34d2434558c038cc04556ceb02db9ab6d0334ba2 /target/cris/cpu.c | |
parent | f06c1ad4c62b8c91608c36cd3c870524979a278e (diff) | |
download | qemu-4060474284cd6c7012c50dda743c6c151b92be87.zip qemu-4060474284cd6c7012c50dda743c6c151b92be87.tar.gz qemu-4060474284cd6c7012c50dda743c6c151b92be87.tar.bz2 |
target/cris: Convert to tcg_ops restore_state_to_opc
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/cris/cpu.c')
-rw-r--r-- | target/cris/cpu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/cris/cpu.c b/target/cris/cpu.c index 22f5c70..fb05dc6 100644 --- a/target/cris/cpu.c +++ b/target/cris/cpu.c @@ -42,6 +42,15 @@ static vaddr cris_cpu_get_pc(CPUState *cs) return cpu->env.pc; } +static void cris_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) +{ + CRISCPU *cpu = CRIS_CPU(cs); + + cpu->env.pc = data[0]; +} + static bool cris_cpu_has_work(CPUState *cs) { return cs->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI); @@ -212,6 +221,7 @@ static const struct SysemuCPUOps cris_sysemu_ops = { static const struct TCGCPUOps crisv10_tcg_ops = { .initialize = cris_initialize_crisv10_tcg, + .restore_state_to_opc = cris_restore_state_to_opc, #ifndef CONFIG_USER_ONLY .tlb_fill = cris_cpu_tlb_fill, @@ -222,6 +232,7 @@ static const struct TCGCPUOps crisv10_tcg_ops = { static const struct TCGCPUOps crisv32_tcg_ops = { .initialize = cris_initialize_tcg, + .restore_state_to_opc = cris_restore_state_to_opc, #ifndef CONFIG_USER_ONLY .tlb_fill = cris_cpu_tlb_fill, |