qemu/target
Aurelien Jarno cb1de55a83 target/alpha: fix tlb_fill trap_arg2 value for instruction fetch
Commit e41c945297 ("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: e41c945297
Cc: qemu-stable@nongnu.org
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
[rth: Test MMU_DATA_LOAD and MMU_DATA_STORE instead of implying them.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2019-08-25 12:30:48 -07:00
..
alpha target/alpha: fix tlb_fill trap_arg2 value for instruction fetch 2019-08-25 12:30:48 -07:00
arm Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
cris Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
hppa Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
i386 Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
lm32 Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
m68k hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
microblaze Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
mips Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
moxie hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
nios2 Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
openrisc hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
ppc Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
riscv Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
s390x s390x/mmu: Factor out storage key handling 2019-08-22 14:53:49 +02:00
sh4 Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
sparc Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
tilegx hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
tricore Converted target/tricore to translate_loop 2019-08-22 17:01:30 +01:00
unicore32 Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00
xtensa Monitor patches for 2019-08-21 2019-08-22 10:31:21 +01:00