Skip to content
Snippets Groups Projects
Commit affdb7e6 authored by Nick Hudson's avatar Nick Hudson Committed by Richard Henderson
Browse files

target/hppa: Always return EXCP_DMAR for protection id trap


The EXCP_DMP trap is considered legacy.

"In PA-RISC 1.1 (Second Edition) and later revisions, processors must use
traps 26, 27,and 28 which provide equivalent functionality"

Signed-off-by: default avatarNick Hudson <skrll@netbsd.org>
Message-Id: <20190423063621.8203-3-nick.hudson@gmx.co.uk>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 6797c315
No related branches found
No related tags found
No related merge requests found
......@@ -154,8 +154,7 @@ int hppa_get_physical_address(CPUHPPAState *env, vaddr addr, int mmu_idx,
if (unlikely(!(prot & type))) {
/* The access isn't allowed -- Inst/Data Memory Protection Fault. */
ret = (type & PAGE_EXEC ? EXCP_IMP :
prot & PAGE_READ ? EXCP_DMP : EXCP_DMAR);
ret = (type & PAGE_EXEC) ? EXCP_IMP : EXCP_DMAR;
goto egress;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment