aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-03-04 10:56:47 -0500
committerJames Hogan <james.hogan@imgtec.com>2015-03-27 17:25:11 -0400
commit2211ee810ac6fdcdb42b7a126e20d1b4e5c55124 (patch)
tree025c65ac1c3253812a5c0b738899fd698a6e97ae /arch/mips/include/asm/kvm_host.h
parent7bd4acec42670a18b023392db6f4bfaa4dee179e (diff)
MIPS: KVM: Simplify default guest Config registers
Various semi-used definitions exist in kvm_host.h for the default guest config registers. Remove them and use the appropriate values directly when initialising the Config registers. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Gleb Natapov <gleb@kernel.org> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org
Diffstat (limited to 'arch/mips/include/asm/kvm_host.h')
-rw-r--r--arch/mips/include/asm/kvm_host.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h
index 1bd392d3a35b..6996447fd2a7 100644
--- a/arch/mips/include/asm/kvm_host.h
+++ b/arch/mips/include/asm/kvm_host.h
@@ -265,31 +265,6 @@ struct mips_coproc {
265#define CP0C3_SM 1 265#define CP0C3_SM 1
266#define CP0C3_TL 0 266#define CP0C3_TL 0
267 267
268/* Have config1, Cacheable, noncoherent, write-back, write allocate*/
269#define MIPS_CONFIG0 \
270 ((1 << CP0C0_M) | (0x3 << CP0C0_K0))
271
272/* Have config2, no coprocessor2 attached, no MDMX support attached,
273 no performance counters, watch registers present,
274 no code compression, EJTAG present, no FPU, no watch registers */
275#define MIPS_CONFIG1 \
276((1 << CP0C1_M) | \
277 (0 << CP0C1_C2) | (0 << CP0C1_MD) | (0 << CP0C1_PC) | \
278 (0 << CP0C1_WR) | (0 << CP0C1_CA) | (1 << CP0C1_EP) | \
279 (0 << CP0C1_FP))
280
281/* Have config3, no tertiary/secondary caches implemented */
282#define MIPS_CONFIG2 \
283((1 << CP0C2_M))
284
285/* No config4, no DSP ASE, no large physaddr (PABITS),
286 no external interrupt controller, no vectored interrupts,
287 no 1kb pages, no SmartMIPS ASE, no trace logic */
288#define MIPS_CONFIG3 \
289((0 << CP0C3_M) | (0 << CP0C3_DSPP) | (0 << CP0C3_LPA) | \
290 (0 << CP0C3_VEIC) | (0 << CP0C3_VInt) | (0 << CP0C3_SP) | \
291 (0 << CP0C3_SM) | (0 << CP0C3_TL))
292
293/* MMU types, the first four entries have the same layout as the 268/* MMU types, the first four entries have the same layout as the
294 CP0C0_MT field. */ 269 CP0C0_MT field. */
295enum mips_mmu_types { 270enum mips_mmu_types {