mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/mips: Restrict SoftMMU mmu_index() to TCG
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250401080938.32278-14-philmd@linaro.org>
This commit is contained in:
parent
2b08170ffe
commit
a433b2194f
1 changed files with 7 additions and 6 deletions
|
@ -182,11 +182,6 @@ static bool mips_cpu_has_work(CPUState *cs)
|
|||
}
|
||||
#endif /* !CONFIG_USER_ONLY */
|
||||
|
||||
static int mips_cpu_mmu_index(CPUState *cs, bool ifunc)
|
||||
{
|
||||
return mips_env_mmu_index(cpu_env(cs));
|
||||
}
|
||||
|
||||
#include "cpu-defs.c.inc"
|
||||
|
||||
static void mips_cpu_reset_hold(Object *obj, ResetType type)
|
||||
|
@ -549,11 +544,18 @@ static const Property mips_cpu_properties[] = {
|
|||
|
||||
#ifdef CONFIG_TCG
|
||||
#include "accel/tcg/cpu-ops.h"
|
||||
|
||||
static int mips_cpu_mmu_index(CPUState *cs, bool ifunc)
|
||||
{
|
||||
return mips_env_mmu_index(cpu_env(cs));
|
||||
}
|
||||
|
||||
static const TCGCPUOps mips_tcg_ops = {
|
||||
.initialize = mips_tcg_init,
|
||||
.translate_code = mips_translate_code,
|
||||
.synchronize_from_tb = mips_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = mips_restore_state_to_opc,
|
||||
.mmu_index = mips_cpu_mmu_index,
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
.tlb_fill = mips_cpu_tlb_fill,
|
||||
|
@ -581,7 +583,6 @@ static void mips_cpu_class_init(ObjectClass *c, void *data)
|
|||
&mcc->parent_phases);
|
||||
|
||||
cc->class_by_name = mips_cpu_class_by_name;
|
||||
cc->mmu_index = mips_cpu_mmu_index;
|
||||
cc->dump_state = mips_cpu_dump_state;
|
||||
cc->set_pc = mips_cpu_set_pc;
|
||||
cc->get_pc = mips_cpu_get_pc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue