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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260202234550.34156-7-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2026-02-03 00:07:38 +01:00
parent c3ba74e21a
commit 2be3650d62

View File

@@ -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,