mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
190ce7fbc7
commit
bad729e272
22 changed files with 79 additions and 66 deletions
|
@ -5459,11 +5459,13 @@ void gen_intermediate_code_init(CPUSPARCState *env)
|
|||
}
|
||||
}
|
||||
|
||||
void restore_state_to_opc(CPUSPARCState *env, TranslationBlock *tb, int pc_pos)
|
||||
void restore_state_to_opc(CPUSPARCState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
{
|
||||
target_ulong pc, npc;
|
||||
env->pc = pc = tcg_ctx.gen_opc_pc[pc_pos];
|
||||
npc = gen_opc_npc[pc_pos];
|
||||
target_ulong pc = data[0];
|
||||
target_ulong npc = data[1];
|
||||
|
||||
env->pc = pc;
|
||||
if (npc == DYNAMIC_PC) {
|
||||
/* dynamic NPC: already stored */
|
||||
} else if (npc & JUMP_PC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue