Skip to content

Commit

Permalink
target/mips: Populate CPUClass.mmu_index
Browse files Browse the repository at this point in the history
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Feb 2, 2024
1 parent e7fe5ed commit d5bdacd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions target/mips/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ static bool mips_cpu_has_work(CPUState *cs)
return has_work;
}

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)
Expand Down Expand Up @@ -579,6 +584,7 @@ static void mips_cpu_class_init(ObjectClass *c, void *data)

cc->class_by_name = mips_cpu_class_by_name;
cc->has_work = mips_cpu_has_work;
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;
Expand Down

0 comments on commit d5bdacd

Please sign in to comment.