]> Git Repo - qemu.git/commitdiff
target-microblaze: mmu: Correct masking of output addresses
authorEdgar E. Iglesias <[email protected]>
Thu, 14 Jun 2018 13:34:44 +0000 (15:34 +0200)
committerEdgar E. Iglesias <[email protected]>
Fri, 15 Jun 2018 07:03:55 +0000 (09:03 +0200)
Correct the masking of output addresses.

This fixes Coverity CID 1391441.

Fixes: commit 3924a9aa02
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reported-by: Peter Maydell <[email protected]>
Signed-off-by: Edgar E. Iglesias <[email protected]>
target/microblaze/mmu.c

index f4ceaea5205d98eae836e703070c2860b6000a7a..fcf86b12d500d04ab865a5a3d220cfaabd3f23f3 100644 (file)
@@ -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;
This page took 0.027746 seconds and 4 git commands to generate.