mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/alpha: 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
d29256896f
commit
c0cd068f32
2 changed files with 9 additions and 6 deletions
|
@ -40,6 +40,14 @@ static vaddr alpha_cpu_get_pc(CPUState *cs)
|
||||||
return cpu->env.pc;
|
return cpu->env.pc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void alpha_restore_state_to_opc(CPUState *cs,
|
||||||
|
const TranslationBlock *tb,
|
||||||
|
const uint64_t *data)
|
||||||
|
{
|
||||||
|
AlphaCPU *cpu = ALPHA_CPU(cs);
|
||||||
|
|
||||||
|
cpu->env.pc = data[0];
|
||||||
|
}
|
||||||
|
|
||||||
static bool alpha_cpu_has_work(CPUState *cs)
|
static bool alpha_cpu_has_work(CPUState *cs)
|
||||||
{
|
{
|
||||||
|
@ -226,6 +234,7 @@ static const struct SysemuCPUOps alpha_sysemu_ops = {
|
||||||
|
|
||||||
static const struct TCGCPUOps alpha_tcg_ops = {
|
static const struct TCGCPUOps alpha_tcg_ops = {
|
||||||
.initialize = alpha_translate_init,
|
.initialize = alpha_translate_init,
|
||||||
|
.restore_state_to_opc = alpha_restore_state_to_opc,
|
||||||
|
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
.record_sigsegv = alpha_cpu_record_sigsegv,
|
.record_sigsegv = alpha_cpu_record_sigsegv,
|
||||||
|
|
|
@ -3049,9 +3049,3 @@ void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int max_insns,
|
||||||
DisasContext dc;
|
DisasContext dc;
|
||||||
translator_loop(cpu, tb, max_insns, pc, host_pc, &alpha_tr_ops, &dc.base);
|
translator_loop(cpu, tb, max_insns, pc, host_pc, &alpha_tr_ops, &dc.base);
|
||||||
}
|
}
|
||||||
|
|
||||||
void restore_state_to_opc(CPUAlphaState *env, TranslationBlock *tb,
|
|
||||||
target_ulong *data)
|
|
||||||
{
|
|
||||||
env->pc = data[0];
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue