[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] Avoid compiler error
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] Re: [PATCH] Avoid compiler error |
Date: |
Sat, 10 Apr 2010 17:15:22 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sat, Apr 10, 2010 at 09:26:03AM +0200, Stefan Weil wrote:
> A 32 bit cross compilation of x86_64-linux-user raises this error:
>
> CC x86_64-linux-user/exec.o
> cc1: warnings being treated as errors
> exec.c: In function ‘page_init’:
> exec.c:350: error: large integer implicitly truncated to unsigned type
>
> L1_MAP_ADDR_SPACE_BITS == 47, HOST_LONG_BITS == 32,
> so the shift operation indeed is problematic.
>
I am not sure it is the real fix. I don't think there is a point of
having L1_MAP_ADDR_SPACE_BITS > HOST_LONG_BITS, most probably it should
be reduced to HOST_LONG_BITS if the latter is smaller, as done in system
mode.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net