diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2018-06-14 15:34:44 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2018-06-15 09:03:55 +0200 |
commit | 643fbf02e04ee2631fda82cb7e1d0f3c86e38213 (patch) | |
tree | 0f5fcf344581287fdc040a508c21f1f97d24cfe9 /target/microblaze/mmu.c | |
parent | 3b2a4d3901b8b45840c0e0495ee1cbd13123739d (diff) |
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/mmu.c')
-rw-r--r-- | target/microblaze/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c index f4ceaea520..fcf86b12d5 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; |