diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-18 01:06:45 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-13 09:32:32 +0100 |
commit | a844873512400fae6bed9e87694dc96ff2f15f39 (patch) | |
tree | 42a8f01732a9e7cbc7abd2af5b39b05489a4b634 /target/mips/cpu.c | |
parent | c12b1e67d50c01f6ba78abcdaaa533abaf71b664 (diff) | |
download | qemu-a844873512400fae6bed9e87694dc96ff2f15f39.zip qemu-a844873512400fae6bed9e87694dc96ff2f15f39.tar.gz qemu-a844873512400fae6bed9e87694dc96ff2f15f39.tar.bz2 |
mips: Remove support for trap and emulate KVM
This support was limited to the Malta board, drop it.
I do not have a machine that can run VZ KVM, so I am assuming
that it works for -M malta as well.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221221091718.71844-1-philmd@linaro.org>
Diffstat (limited to 'target/mips/cpu.c')
-rw-r--r-- | target/mips/cpu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/target/mips/cpu.c b/target/mips/cpu.c index c614b04..052e54b 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -292,12 +292,7 @@ static void mips_cpu_reset_hold(Object *obj) env->tlb->tlb_in_use = env->tlb->nb_tlb; env->CP0_Wired = 0; env->CP0_GlobalNumber = (cs->cpu_index & 0xFF) << CP0GN_VPId; - env->CP0_EBase = (cs->cpu_index & 0x3FF); - if (mips_um_ksegs_enabled()) { - env->CP0_EBase |= 0x40000000; - } else { - env->CP0_EBase |= (int32_t)0x80000000; - } + env->CP0_EBase = KSEG0_BASE | (cs->cpu_index & 0x3FF); if (env->CP0_Config3 & (1 << CP0C3_CMGCR)) { env->CP0_CMGCRBase = 0x1fbf8000 >> 4; } |