From acd6ba74d6de7add51763a19e6af2f0e41877513 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 11 Mar 2019 20:15:54 +0100 Subject: target/hppa: report ITLB_EXCP_MISS for ITLB misses Signed-off-by: Sven Schnelle Message-Id: <20190311191602.25796-4-svens@stackframe.org> Reviewed-by: Richard Henderson Signed-off-by: Richard Henderson --- target/hppa/mem_helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'target/hppa') 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; } -- cgit v1.1