diff options
author | Richard Henderson | 2015-09-02 00:51:12 +0200 |
---|---|---|
committer | Richard Henderson | 2015-10-07 11:36:51 +0200 |
commit | bad729e272387de7dbfa3ec4319036552fc6c107 (patch) | |
tree | 94e36f4afab09565c1fe76e8500b4fc5620a2833 /target-sh4 | |
parent | tcg: Add TCG_MAX_INSNS (diff) | |
download | qemu-bad729e272387de7dbfa3ec4319036552fc6c107.tar.gz qemu-bad729e272387de7dbfa3ec4319036552fc6c107.tar.xz 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-sh4')
-rw-r--r-- | target-sh4/translate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index b48b9bbb5e..d3fe1de94a 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1950,8 +1950,9 @@ void gen_intermediate_code_pc(CPUSH4State * env, struct TranslationBlock *tb) gen_intermediate_code_internal(sh_env_get_cpu(env), tb, true); } -void restore_state_to_opc(CPUSH4State *env, TranslationBlock *tb, int pc_pos) +void restore_state_to_opc(CPUSH4State *env, TranslationBlock *tb, + target_ulong *data) { - env->pc = tcg_ctx.gen_opc_pc[pc_pos]; - env->flags = gen_opc_hflags[pc_pos]; + env->pc = data[0]; + env->flags = data[1]; } |