aboutsummaryrefslogtreecommitdiff
path: root/target/microblaze
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>2018-06-14 15:34:44 +0200
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>2018-06-15 09:03:55 +0200
commit643fbf02e04ee2631fda82cb7e1d0f3c86e38213 (patch)
tree0f5fcf344581287fdc040a508c21f1f97d24cfe9 /target/microblaze
parent3b2a4d3901b8b45840c0e0495ee1cbd13123739d (diff)
downloadqemu-643fbf02e04ee2631fda82cb7e1d0f3c86e38213.zip
qemu-643fbf02e04ee2631fda82cb7e1d0f3c86e38213.tar.gz
qemu-643fbf02e04ee2631fda82cb7e1d0f3c86e38213.tar.bz2
target-microblaze: mmu: Correct masking of output addresses
Correct the masking of output addresses. This fixes Coverity CID 1391441. Fixes: commit 3924a9aa02 Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target/microblaze')
-rw-r--r--target/microblaze/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c
index f4ceaea..fcf86b1 100644
--- a/target/microblaze/mmu.c
+++ b/target/microblaze/mmu.c
@@ -159,7 +159,6 @@ unsigned int mmu_translate(struct microblaze_mmu *mmu,
lu->vaddr = tlb_tag;
lu->paddr = tlb_rpn & mmu->c_addr_mask;
- lu->paddr = tlb_rpn;
lu->size = tlb_size;
lu->err = ERR_HIT;
lu->idx = i;