mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
accel/tcg: Move cpu_get_tb_cpu_state to TCGCPUOps
Move the global function name to a hook on TCGCPUOps. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4759aae432
commit
c37f8978d9
27 changed files with 56 additions and 26 deletions
|
@ -41,7 +41,7 @@ static vaddr openrisc_cpu_get_pc(CPUState *cs)
|
|||
return cpu->env.pc;
|
||||
}
|
||||
|
||||
TCGTBCPUState cpu_get_tb_cpu_state(CPUState *cs)
|
||||
static TCGTBCPUState openrisc_get_tb_cpu_state(CPUState *cs)
|
||||
{
|
||||
CPUOpenRISCState *env = cpu_env(cs);
|
||||
|
||||
|
@ -258,6 +258,7 @@ static const TCGCPUOps openrisc_tcg_ops = {
|
|||
|
||||
.initialize = openrisc_translate_init,
|
||||
.translate_code = openrisc_translate_code,
|
||||
.get_tb_cpu_state = openrisc_get_tb_cpu_state,
|
||||
.synchronize_from_tb = openrisc_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = openrisc_restore_state_to_opc,
|
||||
.mmu_index = openrisc_cpu_mmu_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue