Re: [PATCH] system: Define ram_addr_t to be always uint64_t
Richard Henderson <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 8/14/26 06:40, Peter Xu wrote: > QEMU's 32bit host support was deprecated since 10.0 and removed in 11.0, at > least the system emulation part. Now it's safe to move ram_addr_t > completely over to uint64_t. > > It should be almost the same as uintptr_t as before for !Xen, except that > on some systems (like MacOS) uintptr_t and uint64_t can be typed slightly > differently, causing unnecessary compiler warnings when use them in a > mixture way. > > Hopefully, this change also makes it clear that ram_addr_t is never used as > a host pointer in any form, but only an internal QEMU integer based address > space for allocating ramblocks. > > [1]https://lore.kernel.org/r/[email protected] > > Cc: Paolo Bonzini<[email protected]> > Cc: Philippe Mathieu-Daudé<[email protected]> > Suggested-by: Richard Henderson<[email protected]> > Signed-off-by: Peter Xu<[email protected]> > --- > include/system/ram_addr.h | 6 ------ > 1 file changed, 6 deletions(-) Reviewed-by: Richard Henderson <[email protected]> r~