mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
Add __mips__to mmap specialcase.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2932 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
187337f8b0
commit
6b078dfd60
@ -157,7 +157,7 @@ long target_mmap(target_ulong start, target_ulong len, int prot,
|
|||||||
target_ulong ret, end, real_start, real_end, retaddr, host_offset, host_len;
|
target_ulong ret, end, real_start, real_end, retaddr, host_offset, host_len;
|
||||||
long host_start;
|
long host_start;
|
||||||
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
|
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
|
||||||
defined(__ia64)
|
defined(__ia64) || defined(__mips__)
|
||||||
static target_ulong last_start = 0x40000000;
|
static target_ulong last_start = 0x40000000;
|
||||||
#elif defined(__CYGWIN__)
|
#elif defined(__CYGWIN__)
|
||||||
/* Cygwin doesn't have a whole lot of address space. */
|
/* Cygwin doesn't have a whole lot of address space. */
|
||||||
@ -202,8 +202,8 @@ long target_mmap(target_ulong start, target_ulong len, int prot,
|
|||||||
|
|
||||||
if (!(flags & MAP_FIXED)) {
|
if (!(flags & MAP_FIXED)) {
|
||||||
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
|
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
|
||||||
defined(__ia64) || defined(__CYGWIN__)
|
defined(__ia64) || defined(__mips__) || defined(__CYGWIN__)
|
||||||
/* tell the kenel to search at the same place as i386 */
|
/* tell the kernel to search at the same place as i386 */
|
||||||
if (real_start == 0) {
|
if (real_start == 0) {
|
||||||
real_start = last_start;
|
real_start = last_start;
|
||||||
last_start += HOST_PAGE_ALIGN(len);
|
last_start += HOST_PAGE_ALIGN(len);
|
||||||
|
Loading…
Reference in New Issue
Block a user