bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx
commit883f2c591fee552067e160208b4fe0228dbabbb1
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jan 2023 21:29:47 +0000 (10 22:29 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 18 Jan 2023 10:14:34 +0000 (18 11:14 +0100)
tree3f3944303bb12228328e7ccace0791159295eef9
parent6e6761d8fb640cf3dc58735c050878847eb22fca
bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx

The 'hwaddr' type is defined in "exec/hwaddr.h" as:

    hwaddr is the type of a physical address
   (its size can be different from 'target_ulong').

All definitions use the 'HWADDR_' prefix, except TARGET_FMT_plx:

 $ fgrep define include/exec/hwaddr.h
 #define HWADDR_H
 #define HWADDR_BITS 64
 #define HWADDR_MAX UINT64_MAX
 #define TARGET_FMT_plx "%016" PRIx64
         ^^^^^^
 #define HWADDR_PRId PRId64
 #define HWADDR_PRIi PRIi64
 #define HWADDR_PRIo PRIo64
 #define HWADDR_PRIu PRIu64
 #define HWADDR_PRIx PRIx64
 #define HWADDR_PRIX PRIX64

Since hwaddr's size can be *different* from target_ulong, it is
very confusing to read one of its format using the 'TARGET_FMT_'
prefix, normally used for the target_long / target_ulong types:

$ fgrep TARGET_FMT_ include/exec/cpu-defs.h
 #define TARGET_FMT_lx "%08x"
 #define TARGET_FMT_ld "%d"
 #define TARGET_FMT_lu "%u"
 #define TARGET_FMT_lx "%016" PRIx64
 #define TARGET_FMT_ld "%" PRId64
 #define TARGET_FMT_lu "%" PRIu64

Apparently this format was missed during commit a8170e5e97
("Rename target_phys_addr_t to hwaddr"), so complete it by
doing a bulk-rename with:

 $ sed -i -e s/TARGET_FMT_plx/HWADDR_FMT_plx/g $(git grep -l TARGET_FMT_plx)

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230110212947.34557-1-philmd@linaro.org>
[thuth: Fix some warnings from checkpatch.pl along the way]
Signed-off-by: Thomas Huth <thuth@redhat.com>
69 files changed:
accel/tcg/cputlb.c
hw/arm/strongarm.c
hw/block/pflash_cfi01.c
hw/char/digic-uart.c
hw/char/etraxfs_ser.c
hw/core/loader.c
hw/core/sysbus.c
hw/display/cirrus_vga.c
hw/display/g364fb.c
hw/display/vga.c
hw/dma/etraxfs_dma.c
hw/dma/pl330.c
hw/dma/xilinx_axidma.c
hw/dma/xlnx_csu_dma.c
hw/i2c/mpc_i2c.c
hw/i386/multiboot.c
hw/i386/xen/xen-hvm.c
hw/i386/xen/xen-mapcache.c
hw/i386/xen/xen_platform.c
hw/intc/arm_gicv3_dist.c
hw/intc/arm_gicv3_its.c
hw/intc/arm_gicv3_redist.c
hw/intc/exynos4210_combiner.c
hw/misc/auxbus.c
hw/misc/ivshmem.c
hw/misc/macio/mac_dbdma.c
hw/misc/mst_fpga.c
hw/net/allwinner-sun8i-emac.c
hw/net/allwinner_emac.c
hw/net/fsl_etsec/etsec.c
hw/net/fsl_etsec/rings.c
hw/net/pcnet.c
hw/net/rocker/rocker.c
hw/net/rocker/rocker_desc.c
hw/net/xilinx_axienet.c
hw/net/xilinx_ethlite.c
hw/pci-bridge/pci_expander_bridge.c
hw/pci-host/bonito.c
hw/pci-host/ppce500.c
hw/pci/pci_host.c
hw/ppc/ppc4xx_sdram.c
hw/rtc/exynos4210_rtc.c
hw/sh4/sh7750.c
hw/ssi/xilinx_spi.c
hw/ssi/xilinx_spips.c
hw/timer/digic-timer.c
hw/timer/etraxfs_timer.c
hw/timer/exynos4210_mct.c
hw/timer/exynos4210_pwm.c
hw/virtio/virtio-mmio.c
hw/xen/xen_pt.c
include/exec/hwaddr.h
monitor/misc.c
softmmu/memory.c
softmmu/memory_mapping.c
softmmu/physmem.c
target/i386/monitor.c
target/loongarch/tlb_helper.c
target/microblaze/op_helper.c
target/mips/tcg/sysemu/tlb_helper.c
target/ppc/mmu-hash32.c
target/ppc/mmu-hash64.c
target/ppc/mmu_common.c
target/ppc/mmu_helper.c
target/riscv/cpu_helper.c
target/riscv/monitor.c
target/sparc/ldst_helper.c
target/sparc/mmu_helper.c
target/tricore/helper.c