Define and use TARGET_PRI*PHYS format specifier macros for target_phys_addr_t
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ping?
-- PMM
Quoted 29 lines · Peter Maydell
This patchset defines a set of macros for use in printf format strings for handling
target_phys_addr_tvalues, as suggested by Andreas Färber
(http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg01547.html)We can then use them in some places which were previously either making assumptions about the width of
target_phys_addr_tor had an ifdef to handle the 32 and 64 bit cases separately. Patches 2-4 cover the format-string related parts of Anthony's original "maketarget_phys_addr_t64 bits in all cases" patch:
http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg01523.htmlChanges
v1->v2:
* rename macros to TARGET_PRI*PHYS, to be (a) a bit less opaque about what they're for and (b) not in the namespace reserved by POSIXPeter Maydell (4):
targphys.h: Define TARGET_PRI*PHYS format specifier macroshw/omap.h: UseTARGET_PRIxPHYSto defineOMAP_FMT_plxhw/sh_serial: UseTARGET_PRIxPHYSrather than %x for physaddr
monitor: Use TARGET_PRI*PHYS to avoidTARGET_PHYS_ADDR_BITSifdefhw/omap.h | 8 +------- hw/sh_serial.c | 6 ++++-- monitor.c | 29 ++++------------------------- targphys.h | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 34 deletions(-)
Blue Swirl
AppliedQuoted 10 lines · Peter Maydell
This patchset defines a set of macros for use in printf format strings for handling
target_phys_addr_tvalues, as suggested by Andreas Färber
(http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg01547.html)We can then use them in some places which were previously either making assumptions about the width of
target_phys_addr_tor had an ifdef to handle the 32 and 64 bit cases separately. Patches 2-4 cover the format-string related parts of Anthony's original "maketarget_phys_addr_t64 bits in all cases" patch:
http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg01523.html
Thanks, applied all.
Quoted 19 lines
Changes
v1->v2:
* rename macros to TARGET_PRI*PHYS, to be (a) a bit less opaque about what they're for and (b) not in the namespace reserved by POSIXPeter Maydell (4):
targphys.h: Define TARGET_PRI*PHYS format specifier macroshw/omap.h: UseTARGET_PRIxPHYSto defineOMAP_FMT_plxhw/sh_serial: UseTARGET_PRIxPHYSrather than %x for physaddr
monitor: Use TARGET_PRI*PHYS to avoidTARGET_PHYS_ADDR_BITSifdefhw/omap.h | 8 +------- hw/sh_serial.c | 6 ++++-- monitor.c | 29 ++++------------------------- targphys.h | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 34 deletions(-)