mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -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
|
@ -20061,18 +20061,19 @@ void cpu_state_reset(CPUMIPSState *env)
|
|||
}
|
||||
}
|
||||
|
||||
void restore_state_to_opc(CPUMIPSState *env, TranslationBlock *tb, int pc_pos)
|
||||
void restore_state_to_opc(CPUMIPSState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
{
|
||||
env->active_tc.PC = tcg_ctx.gen_opc_pc[pc_pos];
|
||||
env->active_tc.PC = data[0];
|
||||
env->hflags &= ~MIPS_HFLAG_BMASK;
|
||||
env->hflags |= gen_opc_hflags[pc_pos];
|
||||
env->hflags |= data[1];
|
||||
switch (env->hflags & MIPS_HFLAG_BMASK_BASE) {
|
||||
case MIPS_HFLAG_BR:
|
||||
break;
|
||||
case MIPS_HFLAG_BC:
|
||||
case MIPS_HFLAG_BL:
|
||||
case MIPS_HFLAG_B:
|
||||
env->btarget = gen_opc_btarget[pc_pos];
|
||||
env->btarget = data[2];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue