5Kc, 5Kf and 20Kc CPU support
PATCH 1/1 5Kc, 5Kf and 20Kc CPU support
Hi
The patch below adds support for 5Kc, 5Kf and 20Kc CPU, ie all the CPU that can be found on a CoreLV card. Note that MIPS performance counters are not yet available in QEMU, so the corresponding configuration bit of the 20Kc CPU is not set.
This patch also fixes the Status_rw_bitmask value of the R4000 CPU, as the PX bit should be writeable on this CPU.
Finally it changes the default 64-bit CPU of the Malta board to a 5Kf one from a R4000 one. The R4000 is not really a good default choice, as it does not have the wait instruction, so QEMU uses all the host CPU with this target CPU.
Bye,
Aurelien
Index: hw/mips_malta.c
===================================================================
RCS file: /sources/qemu/qemu/hw/mips_malta.c,v
retrieving revision 1.27
mips_malta.c +1 -1
@@ -779,7 +779,7 @@ void mips_malta_init (int ram_size, int/* init CPUs */ if (cpu_model ==NULL ) {#ifdef TARGET_MIPS64 - cpu_model ="R4000" ; + cpu_model ="5Kf" ;#else cpu_model ="24Kf" ;#endif
Index: target-mips/translate_init.c
===================================================================
RCS file: /sources/qemu/qemu/target-mips/translate_init.c,v retrieving revision 1.9
translate_init.c +40 -1
47 lines not on this page · raw message
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net