qemu/target/hppa
Helge Deller 5f538f7532 target/hppa: Raise exception 26 on emulated hardware
On PCXS chips (PA7000, pa 1.1a), trap #18 is raised on memory faults,
while all later chips (>= PA7100) generate either trap #26, #27 or #28
(depending on the fault type).

Since the current qemu emulation emulates a B160L machine (with a
PA7300LC PCX-L2 chip, we should raise trap #26 (EXCP_DMAR) instead
of #18 (EXCP_DMP) on access faults by the Linux kernel to page zero.

With the patch we now get the correct output (I tested against real
hardware):
 Kernel Fault: Code=26 (Data memory access rights trap)
instead of:
 Kernel Fault: Code=18 (Data memory protection/unaligned access trap)

Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <20181007205153.GA30270@ls3530.fritz.box>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2018-10-16 15:32:22 -07:00
..
cpu-qom.h
cpu.c fpu/softfloat: Specialize on snan_bit_is_one 2018-05-17 15:27:15 -07:00
cpu.h target/hppa: Include priv level in user-only iaoq 2018-03-26 22:56:57 +08:00
gdbstub.c
helper.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
helper.h target/hppa: Implement PROBE for system mode 2018-01-31 05:30:50 -08:00
int_helper.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
machine.c target/hppa: Add migration for the cpu 2018-01-31 05:30:49 -08:00
Makefile.objs target/hppa: Add migration for the cpu 2018-01-31 05:30:49 -08:00
mem_helper.c target/hppa: Raise exception 26 on emulated hardware 2018-10-16 15:32:22 -07:00
op_helper.c target/hppa: Remove floatX_maybe_silence_nan from conversions 2018-05-17 15:27:15 -07:00
translate.c tcg: Pass tb and index to tcg_gen_exit_tb separately 2018-06-01 15:15:27 -07:00