target/sparc: 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
e7977326cd
commit
f36aaa53c6
|
@ -872,6 +872,7 @@ static const struct SysemuCPUOps sparc_sysemu_ops = {
|
|||
static const struct TCGCPUOps sparc_tcg_ops = {
|
||||
.initialize = sparc_tcg_init,
|
||||
.synchronize_from_tb = sparc_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = sparc_restore_state_to_opc,
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
.tlb_fill = sparc_cpu_tlb_fill,
|
||||
|
|
|
@ -600,6 +600,9 @@ int sparc_cpu_memory_rw_debug(CPUState *cpu, vaddr addr,
|
|||
|
||||
/* translate.c */
|
||||
void sparc_tcg_init(void);
|
||||
void sparc_restore_state_to_opc(CPUState *cs,
|
||||
const TranslationBlock *tb,
|
||||
const uint64_t *data);
|
||||
|
||||
/* cpu-exec.c */
|
||||
|
||||
|
|
|
@ -6011,9 +6011,12 @@ void sparc_tcg_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
void restore_state_to_opc(CPUSPARCState *env, TranslationBlock *tb,
|
||||
target_ulong *data)
|
||||
void sparc_restore_state_to_opc(CPUState *cs,
|
||||
const TranslationBlock *tb,
|
||||
const uint64_t *data)
|
||||
{
|
||||
SPARCCPU *cpu = SPARC_CPU(cs);
|
||||
CPUSPARCState *env = &cpu->env;
|
||||
target_ulong pc = data[0];
|
||||
target_ulong npc = data[1];
|
||||
|
||||
|
|
Loading…
Reference in New Issue