qemu/target/alpha
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
..
cpu-param.h tcg: Split out target/arch/cpu-param.h 2019-06-10 07:03:34 -07:00
cpu-qom.h hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
cpu.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
cpu.h configure: Define target access alignment in configure 2019-08-20 17:26:19 +02:00
fpu_helper.c target/alpha: Fix user-only floating-point exceptions 2019-05-19 07:30:03 -07:00
gdbstub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
helper.c target/alpha: fix tlb_fill trap_arg2 value for instruction fetch 2019-08-25 12:30:48 -07:00
helper.h target-alpha: Use ctpop helper 2017-01-10 08:48:56 -08:00
int_helper.c target-alpha: Use ctpop helper 2017-01-10 08:48:56 -08:00
machine.c Include hw/boards.h a bit less 2019-08-16 13:31:53 +02:00
Makefile.objs Move target-* CPU file into a target/ folder 2016-12-20 21:52:12 +01:00
mem_helper.c target/alpha: Convert to CPUClass::tlb_fill 2019-05-10 07:57:39 -07:00
STATUS Move target-* CPU file into a target/ folder 2016-12-20 21:52:12 +01:00
sys_helper.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
translate.c icount: remove unnecessary gen_io_end calls 2019-08-20 17:26:22 +02:00
vax_helper.c Move target-* CPU file into a target/ folder 2016-12-20 21:52:12 +01:00