From 2986721df7d5d6528d17ddc1d25d261e720fd06d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 11 Oct 2017 10:03:02 -0700 Subject: target/hppa: Define hardware exception types Signed-off-by: Richard Henderson --- target/hppa/mem_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/hppa/mem_helper.c') 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; } -- cgit v1.2.3