mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target/s390x: Populate CPUClass.mmu_index
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
90b7022e69
commit
4ef80b271f
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,11 @@ static bool s390_cpu_has_work(CPUState *cs)
|
||||||
return s390_cpu_has_int(cpu);
|
return s390_cpu_has_int(cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int s390x_cpu_mmu_index(CPUState *cs, bool ifetch)
|
||||||
|
{
|
||||||
|
return s390x_env_mmu_index(cpu_env(cs), ifetch);
|
||||||
|
}
|
||||||
|
|
||||||
static void s390_query_cpu_fast(CPUState *cpu, CpuInfoFast *value)
|
static void s390_query_cpu_fast(CPUState *cpu, CpuInfoFast *value)
|
||||||
{
|
{
|
||||||
S390CPU *s390_cpu = S390_CPU(cpu);
|
S390CPU *s390_cpu = S390_CPU(cpu);
|
||||||
|
@ -352,6 +357,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
|
||||||
scc->reset = s390_cpu_reset;
|
scc->reset = s390_cpu_reset;
|
||||||
cc->class_by_name = s390_cpu_class_by_name,
|
cc->class_by_name = s390_cpu_class_by_name,
|
||||||
cc->has_work = s390_cpu_has_work;
|
cc->has_work = s390_cpu_has_work;
|
||||||
|
cc->mmu_index = s390x_cpu_mmu_index;
|
||||||
cc->dump_state = s390_cpu_dump_state;
|
cc->dump_state = s390_cpu_dump_state;
|
||||||
cc->query_cpu_fast = s390_query_cpu_fast;
|
cc->query_cpu_fast = s390_query_cpu_fast;
|
||||||
cc->set_pc = s390_cpu_set_pc;
|
cc->set_pc = s390_cpu_set_pc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue