mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -716,7 +716,7 @@ static void sparc_cpu_synchronize_from_tb(CPUState *cs,
|
|||
cpu->env.npc = tb->cs_base;
|
||||
}
|
||||
|
||||
TCGTBCPUState cpu_get_tb_cpu_state(CPUState *cs)
|
||||
static TCGTBCPUState sparc_get_tb_cpu_state(CPUState *cs)
|
||||
{
|
||||
CPUSPARCState *env = cpu_env(cs);
|
||||
uint32_t flags = cpu_mmu_index(cs, false);
|
||||
|
@ -1029,6 +1029,7 @@ static const TCGCPUOps sparc_tcg_ops = {
|
|||
|
||||
.initialize = sparc_tcg_init,
|
||||
.translate_code = sparc_translate_code,
|
||||
.get_tb_cpu_state = sparc_get_tb_cpu_state,
|
||||
.synchronize_from_tb = sparc_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = sparc_restore_state_to_opc,
|
||||
.mmu_index = sparc_cpu_mmu_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue