mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 22:11:53 -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
28
hw/omap2.c
28
hw/omap2.c
|
@ -324,7 +324,7 @@ static void omap_eac_reset(struct omap_eac_s *s)
|
|||
omap_eac_interrupt_update(s);
|
||||
}
|
||||
|
||||
static uint64_t omap_eac_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_eac_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_eac_s *s = (struct omap_eac_s *) opaque;
|
||||
|
@ -440,7 +440,7 @@ static uint64_t omap_eac_read(void *opaque, target_phys_addr_t addr,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void omap_eac_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_eac_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_eac_s *s = (struct omap_eac_s *) opaque;
|
||||
|
@ -644,7 +644,7 @@ static void omap_sti_reset(struct omap_sti_s *s)
|
|||
omap_sti_interrupt_update(s);
|
||||
}
|
||||
|
||||
static uint64_t omap_sti_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_sti_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_sti_s *s = (struct omap_sti_s *) opaque;
|
||||
|
@ -685,7 +685,7 @@ static uint64_t omap_sti_read(void *opaque, target_phys_addr_t addr,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void omap_sti_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_sti_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_sti_s *s = (struct omap_sti_s *) opaque;
|
||||
|
@ -741,14 +741,14 @@ static const MemoryRegionOps omap_sti_ops = {
|
|||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
};
|
||||
|
||||
static uint64_t omap_sti_fifo_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_sti_fifo_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
OMAP_BAD_REG(addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_sti_fifo_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_sti_s *s = (struct omap_sti_s *) opaque;
|
||||
|
@ -780,7 +780,7 @@ static const MemoryRegionOps omap_sti_fifo_ops = {
|
|||
|
||||
static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
|
||||
MemoryRegion *sysmem,
|
||||
target_phys_addr_t channel_base, qemu_irq irq, omap_clk clk,
|
||||
hwaddr channel_base, qemu_irq irq, omap_clk clk,
|
||||
CharDriverState *chr)
|
||||
{
|
||||
struct omap_sti_s *s = (struct omap_sti_s *)
|
||||
|
@ -1040,7 +1040,7 @@ static void omap_prcm_int_update(struct omap_prcm_s *s, int dom)
|
|||
/* XXX or is the mask applied before PRCM_IRQSTATUS_* ? */
|
||||
}
|
||||
|
||||
static uint64_t omap_prcm_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_prcm_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_prcm_s *s = (struct omap_prcm_s *) opaque;
|
||||
|
@ -1352,7 +1352,7 @@ static void omap_prcm_dpll_update(struct omap_prcm_s *s)
|
|||
}
|
||||
}
|
||||
|
||||
static void omap_prcm_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_prcm_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_prcm_s *s = (struct omap_prcm_s *) opaque;
|
||||
|
@ -1832,7 +1832,7 @@ struct omap_sysctl_s {
|
|||
uint32_t msuspendmux[5];
|
||||
};
|
||||
|
||||
static uint32_t omap_sysctl_read8(void *opaque, target_phys_addr_t addr)
|
||||
static uint32_t omap_sysctl_read8(void *opaque, hwaddr addr)
|
||||
{
|
||||
|
||||
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
|
||||
|
@ -1857,7 +1857,7 @@ static uint32_t omap_sysctl_read8(void *opaque, target_phys_addr_t addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static uint32_t omap_sysctl_read(void *opaque, target_phys_addr_t addr)
|
||||
static uint32_t omap_sysctl_read(void *opaque, hwaddr addr)
|
||||
{
|
||||
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
|
||||
|
||||
|
@ -1957,7 +1957,7 @@ static uint32_t omap_sysctl_read(void *opaque, target_phys_addr_t addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_sysctl_write8(void *opaque, hwaddr addr,
|
||||
uint32_t value)
|
||||
{
|
||||
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
|
||||
|
@ -1981,7 +1981,7 @@ static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,
|
|||
}
|
||||
}
|
||||
|
||||
static void omap_sysctl_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_sysctl_write(void *opaque, hwaddr addr,
|
||||
uint32_t value)
|
||||
{
|
||||
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
|
||||
|
@ -2226,7 +2226,7 @@ static void omap2_mpu_reset(void *opaque)
|
|||
}
|
||||
|
||||
static int omap2_validate_addr(struct omap_mpu_state_s *s,
|
||||
target_phys_addr_t addr)
|
||||
hwaddr addr)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue