summaryrefslogtreecommitdiff
path: root/target-ppc/translate_init.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-04 01:50:03 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-04 01:50:03 +0000
commite57448f11cb29c9b36acd117349070fe290465fa (patch)
tree5f14617c55763968fd137b3a3552c9bdd8385ed5 /target-ppc/translate_init.c
parentd63001d11434fc6bf217255b51f625a75d05fb35 (diff)
downloadqemu-e57448f11cb29c9b36acd117349070fe290465fa.zip
More cache tuning fixes:
* fix the tunable cache line size probe for PowerPC 970. * initialize HID5 so cache line is 32 bytes long when running in user-mode only git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3322 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r--target-ppc/translate_init.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 445cb58186..606a04f254 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -4063,6 +4063,16 @@ static void init_proc_970 (CPUPPCState *env)
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
+ /* XXX : not implemented */
+ spr_register(env, SPR_970_HID5, "HID5",
+ SPR_NOACCESS, SPR_NOACCESS,
+ &spr_read_generic, &spr_write_generic,
+#if defined(CONFIG_USER_ONLY)
+ 0x00000080
+#else
+ 0x00000000
+#endif
+ );
/* Memory management */
/* XXX: not correct */
gen_low_BATs(env);
@@ -4116,7 +4126,12 @@ static void init_proc_970FX (CPUPPCState *env)
spr_register(env, SPR_970_HID5, "HID5",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
- 0x00000000);
+#if defined(CONFIG_USER_ONLY)
+ 0x00000080
+#else
+ 0x00000000
+#endif
+ );
/* Memory management */
/* XXX: not correct */
gen_low_BATs(env);
@@ -4170,7 +4185,12 @@ static void init_proc_970GX (CPUPPCState *env)
spr_register(env, SPR_970_HID5, "HID5",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
- 0x00000000);
+#if defined(CONFIG_USER_ONLY)
+ 0x00000080
+#else
+ 0x00000000
+#endif
+ );
/* Memory management */
/* XXX: not correct */
gen_low_BATs(env);