aboutsummaryrefslogtreecommitdiff
path: root/target/hppa
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2019-03-11 20:15:54 +0100
committerRichard Henderson <richard.henderson@linaro.org>2019-03-12 09:13:43 -0700
commitacd6ba74d6de7add51763a19e6af2f0e41877513 (patch)
tree3575ee6f7e6071fb788c93f0e7578965bc3fd3c0 /target/hppa
parent0b49c3398851622ead40c7e1fc3144d3187123fd (diff)
downloadqemu-acd6ba74d6de7add51763a19e6af2f0e41877513.zip
qemu-acd6ba74d6de7add51763a19e6af2f0e41877513.tar.gz
qemu-acd6ba74d6de7add51763a19e6af2f0e41877513.tar.bz2
target/hppa: report ITLB_EXCP_MISS for ITLB misses
Signed-off-by: Sven Schnelle <svens@stackframe.org> Message-Id: <20190311191602.25796-4-svens@stackframe.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa')
-rw-r--r--target/hppa/mem_helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c
index 648b94c..8674490 100644
--- a/target/hppa/mem_helper.c
+++ b/target/hppa/mem_helper.c
@@ -96,9 +96,7 @@ int hppa_get_physical_address(CPUHPPAState *env, vaddr addr, int mmu_idx,
if (ent == NULL || !ent->entry_valid) {
phys = 0;
prot = 0;
- /* ??? Unconditionally report data tlb miss,
- even if this is an instruction fetch. */
- ret = EXCP_DTLB_MISS;
+ ret = (type == PAGE_EXEC) ? EXCP_ITLB_MISS : EXCP_DTLB_MISS;
goto egress;
}