diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-24 20:10:03 +1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-10-26 11:11:28 +1000 |
commit | 9015781416012af1e44b4710a15a2bf1fe800bb5 (patch) | |
tree | 7f0501af3ce7ccfc1e51aaf353d8c71d5970f783 /target/hexagon | |
parent | 4060474284cd6c7012c50dda743c6c151b92be87 (diff) | |
download | qemu-9015781416012af1e44b4710a15a2bf1fe800bb5.zip qemu-9015781416012af1e44b4710a15a2bf1fe800bb5.tar.gz qemu-9015781416012af1e44b4710a15a2bf1fe800bb5.tar.bz2 |
target/hexagon: 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/hexagon')
-rw-r--r-- | target/hexagon/cpu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index fa6d722..03221fb 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -271,9 +271,13 @@ static bool hexagon_cpu_has_work(CPUState *cs) return true; } -void restore_state_to_opc(CPUHexagonState *env, TranslationBlock *tb, - target_ulong *data) +static void hexagon_restore_state_to_opc(CPUState *cs, + const TranslationBlock *tb, + const uint64_t *data) { + HexagonCPU *cpu = HEXAGON_CPU(cs); + CPUHexagonState *env = &cpu->env; + env->gpr[HEX_REG_PC] = data[0]; } @@ -327,6 +331,7 @@ static void hexagon_cpu_init(Object *obj) static const struct TCGCPUOps hexagon_tcg_ops = { .initialize = hexagon_translate_init, .synchronize_from_tb = hexagon_cpu_synchronize_from_tb, + .restore_state_to_opc = hexagon_restore_state_to_opc, }; static void hexagon_cpu_class_init(ObjectClass *c, void *data) |