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
|
@ -54,7 +54,7 @@ static int avr_cpu_mmu_index(CPUState *cs, bool ifetch)
|
|||
return ifetch ? MMU_CODE_IDX : MMU_DATA_IDX;
|
||||
}
|
||||
|
||||
TCGTBCPUState cpu_get_tb_cpu_state(CPUState *cs)
|
||||
static TCGTBCPUState avr_get_tb_cpu_state(CPUState *cs)
|
||||
{
|
||||
CPUAVRState *env = cpu_env(cs);
|
||||
uint32_t flags = 0;
|
||||
|
@ -241,6 +241,7 @@ static const TCGCPUOps avr_tcg_ops = {
|
|||
.mttcg_supported = false,
|
||||
.initialize = avr_cpu_tcg_init,
|
||||
.translate_code = avr_cpu_translate_code,
|
||||
.get_tb_cpu_state = avr_get_tb_cpu_state,
|
||||
.synchronize_from_tb = avr_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = avr_restore_state_to_opc,
|
||||
.mmu_index = avr_cpu_mmu_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue