aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-11 07:02:25 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-11 07:02:25 +0000
commit3930367245c88b51ed8c182274c5461de93701ee (patch)
tree86c2e84d8b5d19203634c4b21cf568f8ba7a6a0f
parent52a0e9ebf1b502bcb5c36e4a1233b7c4b397e4e4 (diff)
downloadqemu-3930367245c88b51ed8c182274c5461de93701ee.zip
qemu-3930367245c88b51ed8c182274c5461de93701ee.tar.gz
qemu-3930367245c88b51ed8c182274c5461de93701ee.tar.bz2
mips malta: fix commit 7064
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7079 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/mips_malta.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 453e642..bbc7322 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -679,13 +679,13 @@ static void prom_set(int index, const char *string, ...)
}
table_addr = ENVP_ADDR + sizeof(int32_t) * ENVP_NB_ENTRIES
- + index * ENVP_ENTRY_SIZE + VIRT_TO_PHYS_ADDEND;
- stl_raw(p, table_addr);
+ + index * ENVP_ENTRY_SIZE;
+ stl_phys(p, table_addr);
va_start(ap, string);
vsnprintf(buf, ENVP_ENTRY_SIZE, string, ap);
va_end(ap);
- pstrcpy_targphys(table_addr, ENVP_ENTRY_SIZE, buf);
+ pstrcpy_targphys(table_addr + VIRT_TO_PHYS_ADDEND, ENVP_ENTRY_SIZE, buf);
}
/* Kernel */