mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
target/m68k: 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>
This commit is contained in:
parent
ab27940f8e
commit
584fd3422f
@ -38,6 +38,19 @@ static vaddr m68k_cpu_get_pc(CPUState *cs)
|
||||
return cpu->env.pc;
|
||||
}
|
||||
|
||||
static void m68k_restore_state_to_opc(CPUState *cs,
|
||||
const TranslationBlock *tb,
|
||||
const uint64_t *data)
|
||||
{
|
||||
M68kCPU *cpu = M68K_CPU(cs);
|
||||
int cc_op = data[1];
|
||||
|
||||
cpu->env.pc = data[0];
|
||||
if (cc_op != CC_OP_DYNAMIC) {
|
||||
cpu->env.cc_op = cc_op;
|
||||
}
|
||||
}
|
||||
|
||||
static bool m68k_cpu_has_work(CPUState *cs)
|
||||
{
|
||||
return cs->interrupt_request & CPU_INTERRUPT_HARD;
|
||||
@ -524,6 +537,7 @@ static const struct SysemuCPUOps m68k_sysemu_ops = {
|
||||
|
||||
static const struct TCGCPUOps m68k_tcg_ops = {
|
||||
.initialize = m68k_tcg_init,
|
||||
.restore_state_to_opc = m68k_restore_state_to_opc,
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
.tlb_fill = m68k_cpu_tlb_fill,
|
||||
|
@ -6479,13 +6479,3 @@ void m68k_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
||||
env->mmu.mmusr, env->mmu.ar);
|
||||
#endif
|
||||
}
|
||||
|
||||
void restore_state_to_opc(CPUM68KState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
{
|
||||
int cc_op = data[1];
|
||||
env->pc = data[0];
|
||||
if (cc_op != CC_OP_DYNAMIC) {
|
||||
env->cc_op = cc_op;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user