}
#else
/* Returns the OSF/1 entMM failure indication, or -1 on success. */
-static int get_physical_address(CPUAlphaState *env, target_ulong addr,
+static int get_physical_address(CPUAlphaState *env, vaddr addr,
int prot_need, int mmu_idx,
- target_ulong *pphys, int *pprot)
+ hwaddr *pphys, int *pprot)
{
const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED;
CPUState *cs = env_cpu(env);
target_long saddr = addr;
- target_ulong phys = 0;
+ hwaddr phys = 0;
uint64_t L1pte, L2pte, L3pte;
uint64_t pt;
uint16_t index;
hwaddr alpha_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
{
- target_ulong phys;
+ hwaddr phys;
int prot, fail;
fail = get_physical_address(cpu_env(cs), addr, 0, 0, &phys, &prot);
bool probe, uintptr_t retaddr)
{
CPUAlphaState *env = cpu_env(cs);
- target_ulong phys;
+ hwaddr phys;
int prot, fail;
fail = get_physical_address(env, addr, 1 << access_type,