diff --git a/target/alpha/helper.c b/target/alpha/helper.c index d6200d101c..179dc2dc7a 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -165,14 +165,14 @@ void alpha_cpu_record_sigsegv(CPUState *cs, vaddr address, } #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; @@ -297,7 +297,7 @@ static int get_physical_address(CPUAlphaState *env, target_ulong addr, 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); @@ -309,7 +309,7 @@ bool alpha_cpu_tlb_fill(CPUState *cs, vaddr addr, int size, 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,