From: Philippe Mathieu-Daudé Date: Mon, 2 Feb 2026 23:07:38 +0000 (+0100) Subject: target/alpha: Remove target_ulong uses in get_physical_address() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be3650d62a2a25d24891fe3932d09de1b828f95;p=thirdparty%2Fqemu.git target/alpha: Remove target_ulong uses in get_physical_address() %addr is a virtual address, so use the 'vaddr' type. %pphys is a pointer to a physical address, so use the 'hwaddr' type. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20260202234550.34156-7-philmd@linaro.org> --- 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,