aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-05 00:56:37 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-05 00:56:37 +0000
commit917f95fd4d3e88b2813a3ff00050d63cf7d59307 (patch)
tree6f0dd4158b1be2df856586bc2fee0688194df1cf /linux-user
parentfe319756924992f836531957fd680065a0136296 (diff)
downloadqemu-917f95fd4d3e88b2813a3ff00050d63cf7d59307.zip
qemu-917f95fd4d3e88b2813a3ff00050d63cf7d59307.tar.gz
qemu-917f95fd4d3e88b2813a3ff00050d63cf7d59307.tar.bz2
alpha fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@207 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/mmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index afbc169..1c3eb35 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -188,6 +188,11 @@ long target_mmap(unsigned long start, unsigned long len, int prot,
host_start = start & host_page_mask;
if (!(flags & MAP_FIXED)) {
+#ifdef __alpha__
+ /* tell the kenel to search at the same place as i386 */
+ if (host_start == 0)
+ host_start = 0x40000000;
+#endif
if (host_page_size != real_host_page_size) {
/* NOTE: this code is only for debugging with '-p' option */
/* reserve a memory area */
@@ -286,6 +291,7 @@ long target_mmap(unsigned long start, unsigned long len, int prot,
page_set_flags(start, start + len, prot | PAGE_VALID);
the_end:
#ifdef DEBUG_MMAP
+ printf("ret=0x%lx\n", (long)start);
page_dump(stdout);
printf("\n");
#endif