aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-10 15:08:43 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-10 15:08:43 +0000
commit2a1086d91c19cc058f74fb2913e05f262f37cdc7 (patch)
tree8eb349ffa1af4b31ec2297759e29fa504685d070 /hw/mips_malta.c
parent924edcae75a8b06c88896d998c9cb6c3160b7a55 (diff)
More PCI mapping/remapping for Gallileo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2972 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r--hw/mips_malta.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 36b5f43e6d..aa00d382b8 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -543,6 +543,15 @@ static void write_bootloader (CPUState *env, unsigned long bios_offset, int64_t
stl_raw(p++, 0x34e70000 | (env->ram_size & 0xffff)); /* ori a3, a3, low(env->ram_size) */
/* Load BAR registers as done by YAMON */
+ stl_raw(p++, 0x3c09b400); /* lui t1, 0xb400 */
+
+#ifdef TARGET_WORDS_BIGENDIAN
+ stl_raw(p++, 0x3c08df00); /* lui t0, 0xdf00 */
+#else
+ stl_raw(p++, 0x340800df); /* ori t0, r0, 0x00df */
+#endif
+ stl_raw(p++, 0xad280068); /* sw t0, 0x0068(t1) */
+
stl_raw(p++, 0x3c09bbe0); /* lui t1, 0xbbe0 */
#ifdef TARGET_WORDS_BIGENDIAN