Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 23:47, Andreas Färber wrote: > PRI* should never include % or width specifier or prefix. > > What we should IMO do is: > > #define PRIdPLX PRId64 > #define PRIxPLX PRIx64 > #define PRIXPLX PRIX64 > /* or TARGET_PRI*PHYS or whatever */ > > This can then be used as "... %02" PRIxP

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Andreas Färber
Am 12.01.2012 23:56, schrieb Anthony Liguori: > On 01/12/2012 04:46 PM, Peter Maydell wrote: > I think a reasonable thing to do is: > > #define PRIp64 "0x%08" PRIx64 > > s:TARGET_FMT_plx:PRIp64:g Nack, that is unreasonable naming and does not solve the issue pointed out by Peter. PRI* should nev

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 22:56, Anthony Liguori wrote: > This code is broken in its current form.  target_phys_addr_t has an > unspecified width which is why we provide a FMT for it. I don't think it's been clear that target_phys_addr_t has a width which might not be the width of the target's physical

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
On 01/12/2012 04:46 PM, Peter Maydell wrote: On 12 January 2012 22:42, Peter Maydell wrote: You're the one changing what was previously a known-to-be-32-bit type to one that's much bigger, you get to fix the printing issues. This code is broken in its current form. target_phys_addr_t has an

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 22:42, Peter Maydell wrote: > You're the one changing what was previously a known-to-be-32-bit > type to one that's much bigger, you get to fix the printing > issues. ...which isn't to say that I don't think this is a good plan (indeed I suspect I'm going to need wider physaddr

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 20:32, Anthony Liguori wrote: > On 01/12/2012 02:06 PM, Peter Maydell wrote: >> >> On 12 January 2012 17:54, Anthony Liguori  wrote: >>> >>> This simplifies the build quite a bit and improves the builds performance >>> by >>> not rebuilding many objects twice. >>> >>> There were

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
On 01/12/2012 02:06 PM, Peter Maydell wrote: On 12 January 2012 17:54, Anthony Liguori wrote: This simplifies the build quite a bit and improves the builds performance by not rebuilding many objects twice. There were a surprising number of places that had assumed wrong things about the size of

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Peter Maydell
On 12 January 2012 17:54, Anthony Liguori wrote: > This simplifies the build quite a bit and improves the builds performance by > not rebuilding many objects twice. > > There were a surprising number of places that had assumed wrong things about > the > size of target_phys_addr_t including that i

Re: [Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Andreas Färber
Am 12.01.2012 18:54, schrieb Anthony Liguori: > This simplifies the build quite a bit and improves the builds performance by > not rebuilding many objects twice. > > There were a surprising number of places that had assumed wrong things about > the > size of target_phys_addr_t including that it w

[Qemu-devel] [PATCH] build: fix target_phys_addr_t to 64-bit

2012-01-12 Thread Anthony Liguori
This simplifies the build quite a bit and improves the builds performance by not rebuilding many objects twice. There were a surprising number of places that had assumed wrong things about the size of target_phys_addr_t including that it was fixed at 32-bit and that it was identical to target_ulon