Skip to content
Commit cb1de55a authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Richard Henderson
Browse files

target/alpha: fix tlb_fill trap_arg2 value for instruction fetch



Commit e41c9452 ("target/alpha: Convert to CPUClass::tlb_fill")
slightly changed the way the trap_arg2 value is computed in case of TLB
fill. The type of the variable used in the ternary operator has been
changed from an int to an enum. This causes the -1 value to not be
sign-extended to 64-bit in case of an instruction fetch. The trap_arg2
ends up with 0xffffffff instead of 0xffffffffffffffff. Fix that by
changing the -1 into -1LL.

This fixes the execution of user space processes in qemu-system-alpha.

Fixes: e41c9452
Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
[rth: Test MMU_DATA_LOAD and MMU_DATA_STORE instead of implying them.]
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 586f3dce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment