From 3924a9aa02fa00a256ddcfe2d6a08bc410ddcaaf Mon Sep 17 00:00:00 2001 From: Edgar E. Iglesias Date: Mon, 16 Apr 2018 19:37:16 +0200 Subject: target-microblaze: mmu: Add a configurable output address mask Add a configurable output address mask, used to mimic the configurable physical address bit width. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/mmu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/microblaze/mmu.c') diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c index a379968618..166c79908c 100644 --- a/target/microblaze/mmu.c +++ b/target/microblaze/mmu.c @@ -164,6 +164,7 @@ unsigned int mmu_translate(struct microblaze_mmu *mmu, tlb_rpn = d & TLB_RPN_MASK; lu->vaddr = tlb_tag; + lu->paddr = tlb_rpn & mmu->c_addr_mask; lu->paddr = tlb_rpn; lu->size = tlb_size; lu->err = ERR_HIT; -- cgit v1.2.3-55-g7522