summaryrefslogtreecommitdiffstats
path: root/target/hppa/mem_helper.c
diff options
context:
space:
mode:
authorRichard Henderson2017-10-11 19:03:02 +0200
committerRichard Henderson2018-01-30 19:08:18 +0100
commit2986721df7d5d6528d17ddc1d25d261e720fd06d (patch)
treede862bda309a861a338a9ca6be114d2b2346d0e2 /target/hppa/mem_helper.c
parenttarget/hppa: Disable gateway page emulation for system mode (diff)
downloadqemu-2986721df7d5d6528d17ddc1d25d261e720fd06d.tar.gz
qemu-2986721df7d5d6528d17ddc1d25d261e720fd06d.tar.xz
qemu-2986721df7d5d6528d17ddc1d25d261e720fd06d.zip
target/hppa: Define hardware exception types
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa/mem_helper.c')
-rw-r--r--target/hppa/mem_helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c
index a3e576f119..bd116d6bc6 100644
--- a/target/hppa/mem_helper.c
+++ b/target/hppa/mem_helper.c
@@ -29,7 +29,9 @@ int hppa_cpu_handle_mmu_fault(CPUState *cs, vaddr address,
{
HPPACPU *cpu = HPPA_CPU(cs);
- cs->exception_index = EXCP_SIGSEGV;
+ /* ??? Test between data page fault and data memory protection trap,
+ which would affect si_code. */
+ cs->exception_index = EXCP_DMP;
cpu->env.ior = address;
return 1;
}