diff options
author | Richard Henderson <rth@twiddle.net> | 2015-09-01 15:51:12 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-10-07 20:36:51 +1100 |
commit | bad729e272387de7dbfa3ec4319036552fc6c107 (patch) | |
tree | 94e36f4afab09565c1fe76e8500b4fc5620a2833 /target-m68k/translate.c | |
parent | 190ce7fbc79fd0883a6170d7f30da59d366e6830 (diff) | |
download | qemu-bad729e272387de7dbfa3ec4319036552fc6c107.tar.gz qemu-bad729e272387de7dbfa3ec4319036552fc6c107.tar.bz2 qemu-bad729e272387de7dbfa3ec4319036552fc6c107.zip |
tcg: Pass data argument to restore_state_to_opc
The gen_opc_* arrays are already redundant with the data stored in
the insn_start arguments. Transition restore_state_to_opc to use
data from the latter.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-m68k/translate.c')
-rw-r--r-- | target-m68k/translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 185c5650d9..ce8150e8e7 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3118,7 +3118,8 @@ void m68k_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, cpu_fprintf (f, "FPRESULT = %12g\n", *(double *)&env->fp_result); } -void restore_state_to_opc(CPUM68KState *env, TranslationBlock *tb, int pc_pos) +void restore_state_to_opc(CPUM68KState *env, TranslationBlock *tb, + target_ulong *data) { - env->pc = tcg_ctx.gen_opc_pc[pc_pos]; + env->pc = data[0]; } |