mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03: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
|
@ -549,7 +549,7 @@ static int mips_cpu_mmu_index(CPUState *cs, bool ifunc)
|
|||
return mips_env_mmu_index(cpu_env(cs));
|
||||
}
|
||||
|
||||
TCGTBCPUState cpu_get_tb_cpu_state(CPUState *cs)
|
||||
static TCGTBCPUState mips_get_tb_cpu_state(CPUState *cs)
|
||||
{
|
||||
CPUMIPSState *env = cpu_env(cs);
|
||||
|
||||
|
@ -566,6 +566,7 @@ static const TCGCPUOps mips_tcg_ops = {
|
|||
|
||||
.initialize = mips_tcg_init,
|
||||
.translate_code = mips_translate_code,
|
||||
.get_tb_cpu_state = mips_get_tb_cpu_state,
|
||||
.synchronize_from_tb = mips_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = mips_restore_state_to_opc,
|
||||
.mmu_index = mips_cpu_mmu_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue