mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Rename target_phys_addr_t to hwaddr
target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are reserved) and its purpose doesn't match the name (most target_phys_addr_t addresses are not target specific). Replace it with a finger-friendly, standards conformant hwaddr. Outstanding patchsets can be fixed up with the command git rebase -i --exec 'find -name "*.[ch]" | xargs s/target_phys_addr_t/hwaddr/g' origin Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
50d2b4d93f
commit
a8170e5e97
383 changed files with 2240 additions and 2240 deletions
20
hw/gt64xxx.c
20
hw/gt64xxx.c
|
@ -225,8 +225,8 @@
|
|||
#define GT_PCI1_SERR1MASK (0xca8 >> 2)
|
||||
|
||||
#define PCI_MAPPING_ENTRY(regname) \
|
||||
target_phys_addr_t regname ##_start; \
|
||||
target_phys_addr_t regname ##_length; \
|
||||
hwaddr regname ##_start; \
|
||||
hwaddr regname ##_length; \
|
||||
MemoryRegion regname ##_mem
|
||||
|
||||
#define TYPE_GT64120_PCI_HOST_BRIDGE "gt64120"
|
||||
|
@ -245,11 +245,11 @@ typedef struct GT64120State {
|
|||
/* Adjust range to avoid touching space which isn't mappable via PCI */
|
||||
/* XXX: Hardcoded values for Malta: 0x1e000000 - 0x1f100000
|
||||
0x1fc00000 - 0x1fd00000 */
|
||||
static void check_reserved_space (target_phys_addr_t *start,
|
||||
target_phys_addr_t *length)
|
||||
static void check_reserved_space (hwaddr *start,
|
||||
hwaddr *length)
|
||||
{
|
||||
target_phys_addr_t begin = *start;
|
||||
target_phys_addr_t end = *start + *length;
|
||||
hwaddr begin = *start;
|
||||
hwaddr end = *start + *length;
|
||||
|
||||
if (end >= 0x1e000000LL && end < 0x1f100000LL)
|
||||
end = 0x1e000000LL;
|
||||
|
@ -271,8 +271,8 @@ static void check_reserved_space (target_phys_addr_t *start,
|
|||
|
||||
static void gt64120_isd_mapping(GT64120State *s)
|
||||
{
|
||||
target_phys_addr_t start = s->regs[GT_ISD] << 21;
|
||||
target_phys_addr_t length = 0x1000;
|
||||
hwaddr start = s->regs[GT_ISD] << 21;
|
||||
hwaddr length = 0x1000;
|
||||
|
||||
if (s->ISD_length) {
|
||||
memory_region_del_subregion(get_system_memory(), &s->ISD_mem);
|
||||
|
@ -311,7 +311,7 @@ static void gt64120_pci_mapping(GT64120State *s)
|
|||
}
|
||||
}
|
||||
|
||||
static void gt64120_writel (void *opaque, target_phys_addr_t addr,
|
||||
static void gt64120_writel (void *opaque, hwaddr addr,
|
||||
uint64_t val, unsigned size)
|
||||
{
|
||||
GT64120State *s = opaque;
|
||||
|
@ -594,7 +594,7 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr,
|
|||
}
|
||||
|
||||
static uint64_t gt64120_readl (void *opaque,
|
||||
target_phys_addr_t addr, unsigned size)
|
||||
hwaddr addr, unsigned size)
|
||||
{
|
||||
GT64120State *s = opaque;
|
||||
PCIHostState *phb = PCI_HOST_BRIDGE(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue