diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-01-29 09:08:57 +1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-02-03 08:52:25 +1000 |
commit | 628421c74a64bcc7b4eda1218a66b77e89e02d4f (patch) | |
tree | ccc48b60bdc80f7689e02d41059b397d20438826 | |
parent | b7770d72f51505e7fbc4683b4c72085e40dcec51 (diff) | |
download | qemu-628421c74a64bcc7b4eda1218a66b77e89e02d4f.zip qemu-628421c74a64bcc7b4eda1218a66b77e89e02d4f.tar.gz qemu-628421c74a64bcc7b4eda1218a66b77e89e02d4f.tar.bz2 |
target/arm: Populate CPUClass.mmu_index
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/arm/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 6a96b24..1f9ea62 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -133,6 +133,11 @@ static bool arm_cpu_has_work(CPUState *cs) | CPU_INTERRUPT_EXITTB); } +static int arm_cpu_mmu_index(CPUState *cs, bool ifetch) +{ + return arm_env_mmu_index(cpu_env(cs)); +} + void arm_register_pre_el_change_hook(ARMCPU *cpu, ARMELChangeHookFn *hook, void *opaque) { @@ -2497,6 +2502,7 @@ static void arm_cpu_class_init(ObjectClass *oc, void *data) cc->class_by_name = arm_cpu_class_by_name; cc->has_work = arm_cpu_has_work; + cc->mmu_index = arm_cpu_mmu_index; cc->dump_state = arm_cpu_dump_state; cc->set_pc = arm_cpu_set_pc; cc->get_pc = arm_cpu_get_pc; |