Skip to content

Commit

Permalink
target/tricore: 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 3, 2024
1 parent e3547a7 commit eafa0f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions target/tricore/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ static bool tricore_cpu_has_work(CPUState *cs)
return true;
}

static int tricore_cpu_mmu_index(CPUState *cs, bool ifetch)
{
return 0;
}

static void tricore_cpu_realizefn(DeviceState *dev, Error **errp)
{
CPUState *cs = CPU(dev);
Expand Down Expand Up @@ -194,6 +199,7 @@ static void tricore_cpu_class_init(ObjectClass *c, void *data)
&mcc->parent_phases);
cc->class_by_name = tricore_cpu_class_by_name;
cc->has_work = tricore_cpu_has_work;
cc->mmu_index = tricore_cpu_mmu_index;

cc->gdb_read_register = tricore_cpu_gdb_read_register;
cc->gdb_write_register = tricore_cpu_gdb_write_register;
Expand Down

0 comments on commit eafa0f6

Please sign in to comment.