diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-24 19:44:20 +1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-10-26 11:11:28 +1000 |
commit | c0cd068f32bb056d02c3ab0c62ebd08bbda83b84 (patch) | |
tree | 6caeb458c73dabd58a524b2befec892df9e756d6 /target/alpha/cpu.c | |
parent | d29256896f563683419ae4af04d94d7d0f07c225 (diff) | |
download | qemu-c0cd068f32bb056d02c3ab0c62ebd08bbda83b84.zip qemu-c0cd068f32bb056d02c3ab0c62ebd08bbda83b84.tar.gz qemu-c0cd068f32bb056d02c3ab0c62ebd08bbda83b84.tar.bz2 |
target/alpha: 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/alpha/cpu.c')
-rw-r--r-- | target/alpha/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index 979a629..270ae78 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -40,6 +40,14 @@ static vaddr alpha_cpu_get_pc(CPUState *cs) return cpu->env.pc; } +static void alpha_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) +{ + AlphaCPU *cpu = ALPHA_CPU(cs); + + cpu->env.pc = data[0]; +} static bool alpha_cpu_has_work(CPUState *cs) { @@ -226,6 +234,7 @@ static const struct SysemuCPUOps alpha_sysemu_ops = { static const struct TCGCPUOps alpha_tcg_ops = { .initialize = alpha_translate_init, + .restore_state_to_opc = alpha_restore_state_to_opc, #ifdef CONFIG_USER_ONLY .record_sigsegv = alpha_cpu_record_sigsegv, |