mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
target/tricore: 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
f36aaa53c6
commit
b765e427b0
2 changed files with 11 additions and 6 deletions
|
@ -58,6 +58,16 @@ static void tricore_cpu_synchronize_from_tb(CPUState *cs,
|
||||||
env->PC = tb_pc(tb);
|
env->PC = tb_pc(tb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void tricore_restore_state_to_opc(CPUState *cs,
|
||||||
|
const TranslationBlock *tb,
|
||||||
|
const uint64_t *data)
|
||||||
|
{
|
||||||
|
TriCoreCPU *cpu = TRICORE_CPU(cs);
|
||||||
|
CPUTriCoreState *env = &cpu->env;
|
||||||
|
|
||||||
|
env->PC = data[0];
|
||||||
|
}
|
||||||
|
|
||||||
static void tricore_cpu_reset(DeviceState *dev)
|
static void tricore_cpu_reset(DeviceState *dev)
|
||||||
{
|
{
|
||||||
CPUState *s = CPU(dev);
|
CPUState *s = CPU(dev);
|
||||||
|
@ -161,6 +171,7 @@ static const struct SysemuCPUOps tricore_sysemu_ops = {
|
||||||
static const struct TCGCPUOps tricore_tcg_ops = {
|
static const struct TCGCPUOps tricore_tcg_ops = {
|
||||||
.initialize = tricore_tcg_init,
|
.initialize = tricore_tcg_init,
|
||||||
.synchronize_from_tb = tricore_cpu_synchronize_from_tb,
|
.synchronize_from_tb = tricore_cpu_synchronize_from_tb,
|
||||||
|
.restore_state_to_opc = tricore_restore_state_to_opc,
|
||||||
.tlb_fill = tricore_cpu_tlb_fill,
|
.tlb_fill = tricore_cpu_tlb_fill,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -8886,12 +8886,6 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns,
|
||||||
&tricore_tr_ops, &ctx.base);
|
&tricore_tr_ops, &ctx.base);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
restore_state_to_opc(CPUTriCoreState *env, TranslationBlock *tb,
|
|
||||||
target_ulong *data)
|
|
||||||
{
|
|
||||||
env->PC = data[0];
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Initialization
|
* Initialization
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue