target/riscv: Populate CPUClass.mmu_index
Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d9996d0904
commit
a5c7797496
@ -867,6 +867,11 @@ static bool riscv_cpu_has_work(CPUState *cs)
|
||||
#endif
|
||||
}
|
||||
|
||||
static int riscv_cpu_mmu_index(CPUState *cs, bool ifetch)
|
||||
{
|
||||
return riscv_env_mmu_index(cpu_env(cs), ifetch);
|
||||
}
|
||||
|
||||
static void riscv_cpu_reset_hold(Object *obj)
|
||||
{
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
@ -1810,6 +1815,7 @@ static void riscv_cpu_class_init(ObjectClass *c, void *data)
|
||||
|
||||
cc->class_by_name = riscv_cpu_class_by_name;
|
||||
cc->has_work = riscv_cpu_has_work;
|
||||
cc->mmu_index = riscv_cpu_mmu_index;
|
||||
cc->dump_state = riscv_cpu_dump_state;
|
||||
cc->set_pc = riscv_cpu_set_pc;
|
||||
cc->get_pc = riscv_cpu_get_pc;
|
||||
|
Loading…
Reference in New Issue
Block a user