Re: [PATCH] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Alex Bennée
Peter Maydell writes: > On Thu, 21 May 2020 at 11:22, Alex Bennée wrote: >> >> Newer clangs rightly spot that you can never exceed the full address >> space of 64 bit hosts with: >> >> linux-user/elfload.c:2076:41: error: result of comparison 'unsigned >> long' > 18446744073709551615 is

Re: [PATCH] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Peter Maydell
On Thu, 21 May 2020 at 11:22, Alex Bennée wrote: > > Newer clangs rightly spot that you can never exceed the full address > space of 64 bit hosts with: > > linux-user/elfload.c:2076:41: error: result of comparison 'unsigned > long' > 18446744073709551615 is always false >

[PATCH] linux-user: limit check to HOST_LONG_BITS == 32

2020-05-21 Thread Alex Bennée
Newer clangs rightly spot that you can never exceed the full address space of 64 bit hosts with: linux-user/elfload.c:2076:41: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare] 4685 if ((guest_hiaddr -