qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] Avoid compiler error


From: Richard Henderson
Subject: [Qemu-devel] Re: [PATCH] Avoid compiler error
Date: Sat, 10 Apr 2010 11:43:39 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4

On 04/10/2010 12:26 AM, Stefan Weil wrote:
A 32 bit cross compilation of x86_64-linux-user raises this error:
                      } else {
  #if TARGET_ABI_BITS<= L1_MAP_ADDR_SPACE_BITS
                          endaddr = ~0ul;
+#elif HOST_LONG_BITS<= L1_MAP_ADDR_SPACE_BITS
+                        endaddr = ULONG_MAX;
  #else
                          endaddr = ((abi_ulong)1<<  L1_MAP_ADDR_SPACE_BITS) - 
1;
  #endif

You ought to merge those two ifs.  I.e.


#if TARGET_ABI_BITS <= L1_MAP_ADDR_SPACE_BITS \
    || HOST_LONG_BITS<= L1_MAP_ADDR_SPACE_BITS


r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]