mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
committed by
Anthony Liguori
parent
50d2b4d93f
commit
a8170e5e97
@@ -619,21 +619,21 @@ uint64_t helper_ld_asi(CPUSPARCState *env, target_ulong addr, int asi, int size,
|
||||
case 0x21 ... 0x2f: /* MMU passthrough, 0x100000000 to 0xfffffffff */
|
||||
switch (size) {
|
||||
case 1:
|
||||
ret = ldub_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32));
|
||||
ret = ldub_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32));
|
||||
break;
|
||||
case 2:
|
||||
ret = lduw_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32));
|
||||
ret = lduw_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32));
|
||||
break;
|
||||
default:
|
||||
case 4:
|
||||
ret = ldl_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32));
|
||||
ret = ldl_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32));
|
||||
break;
|
||||
case 8:
|
||||
ret = ldq_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32));
|
||||
ret = ldq_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -1015,21 +1015,21 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi,
|
||||
{
|
||||
switch (size) {
|
||||
case 1:
|
||||
stb_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32), val);
|
||||
stb_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32), val);
|
||||
break;
|
||||
case 2:
|
||||
stw_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32), val);
|
||||
stw_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32), val);
|
||||
break;
|
||||
case 4:
|
||||
default:
|
||||
stl_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32), val);
|
||||
stl_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32), val);
|
||||
break;
|
||||
case 8:
|
||||
stq_phys((target_phys_addr_t)addr
|
||||
| ((target_phys_addr_t)(asi & 0xf) << 32), val);
|
||||
stq_phys((hwaddr)addr
|
||||
| ((hwaddr)(asi & 0xf) << 32), val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2313,7 +2313,7 @@ void helper_stqf(CPUSPARCState *env, target_ulong addr, int mem_idx)
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
#ifndef TARGET_SPARC64
|
||||
void cpu_unassigned_access(CPUSPARCState *env, target_phys_addr_t addr,
|
||||
void cpu_unassigned_access(CPUSPARCState *env, hwaddr addr,
|
||||
int is_write, int is_exec, int is_asi, int size)
|
||||
{
|
||||
int fault_type;
|
||||
@@ -2373,7 +2373,7 @@ void cpu_unassigned_access(CPUSPARCState *env, target_phys_addr_t addr,
|
||||
}
|
||||
}
|
||||
#else
|
||||
void cpu_unassigned_access(CPUSPARCState *env, target_phys_addr_t addr,
|
||||
void cpu_unassigned_access(CPUSPARCState *env, hwaddr addr,
|
||||
int is_write, int is_exec, int is_asi, int size)
|
||||
{
|
||||
#ifdef DEBUG_UNASSIGNED
|
||||
|
||||
Reference in New Issue
Block a user