summaryrefslogtreecommitdiff
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 16:44:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 16:44:32 +0000
commita0a8793ebcca7f2ad071b3f95dec3c3dfe44354a (patch)
tree6fcee28f57029c2e9ed2734097e02401e7937ea5 /hw/mips_malta.c
parent6ea4a6c875a2c0902fc19d560ef33228daa88603 (diff)
downloadqemu-a0a8793ebcca7f2ad071b3f95dec3c3dfe44354a.tar.gz
Impement Galilleo ISD register.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3061 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 bc892ed813..ed23052b91 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -538,6 +538,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