mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -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
|
@ -121,7 +121,7 @@ static void omap_gpmc_dma_update(struct omap_gpmc_s *s, int value)
|
|||
* all addresses in the region behave like accesses to the relevant
|
||||
* GPMC_NAND_DATA_i register (which is actually implemented to call these)
|
||||
*/
|
||||
static uint64_t omap_nand_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_nand_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_gpmc_cs_file_s *f = (struct omap_gpmc_cs_file_s *)opaque;
|
||||
|
@ -200,7 +200,7 @@ static void omap_nand_setio(DeviceState *dev, uint64_t value,
|
|||
}
|
||||
}
|
||||
|
||||
static void omap_nand_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_nand_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_gpmc_cs_file_s *f = (struct omap_gpmc_cs_file_s *)opaque;
|
||||
|
@ -281,7 +281,7 @@ static void fill_prefetch_fifo(struct omap_gpmc_s *s)
|
|||
* engine is enabled -- all addresses in the region behave alike:
|
||||
* data is read or written to the FIFO.
|
||||
*/
|
||||
static uint64_t omap_gpmc_prefetch_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_gpmc_prefetch_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
|
||||
|
@ -311,7 +311,7 @@ static uint64_t omap_gpmc_prefetch_read(void *opaque, target_phys_addr_t addr,
|
|||
return data;
|
||||
}
|
||||
|
||||
static void omap_gpmc_prefetch_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_gpmc_prefetch_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
|
||||
|
@ -484,7 +484,7 @@ void omap_gpmc_reset(struct omap_gpmc_s *s)
|
|||
ecc_reset(&s->ecc[i]);
|
||||
}
|
||||
|
||||
static int gpmc_wordaccess_only(target_phys_addr_t addr)
|
||||
static int gpmc_wordaccess_only(hwaddr addr)
|
||||
{
|
||||
/* Return true if the register offset is to a register that
|
||||
* only permits word width accesses.
|
||||
|
@ -502,7 +502,7 @@ static int gpmc_wordaccess_only(target_phys_addr_t addr)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
|
||||
static uint64_t omap_gpmc_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
{
|
||||
struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
|
||||
|
@ -614,7 +614,7 @@ static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
|
||||
static void omap_gpmc_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_gpmc_s *s = (struct omap_gpmc_s *) opaque;
|
||||
|
@ -819,7 +819,7 @@ static const MemoryRegionOps omap_gpmc_ops = {
|
|||
};
|
||||
|
||||
struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
|
||||
target_phys_addr_t base,
|
||||
hwaddr base,
|
||||
qemu_irq irq, qemu_irq drq)
|
||||
{
|
||||
int cs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue