sim: bfin: fix -Wshadow=local warnings
Rename the shadowed var to avoid confusion with the function argument
as to which address this code is using.
diff --git a/sim/bfin/dv-bfin_mmu.c b/sim/bfin/dv-bfin_mmu.c
index c14e208..3d24434 100644
--- a/sim/bfin/dv-bfin_mmu.c
+++ b/sim/bfin/dv-bfin_mmu.c
@@ -144,7 +144,7 @@
*valuep = value;
if (value)
{
- bu32 addr = mmu->sram_base_address |
+ bu32 sram_addr = mmu->sram_base_address |
((value >> (26 - 11)) & (1 << 11)) | /* addr bit 11 (Way0/Way1) */
((value >> (24 - 21)) & (1 << 21)) | /* addr bit 21 (Data/Inst) */
((value >> (23 - 15)) & (1 << 15)) | /* addr bit 15 (Data Bank) */
@@ -157,9 +157,9 @@
hw_abort (me, "DTEST_COMMAND bits undefined");
if (value & TEST_WRITE)
- sim_write (hw_system (me), addr, mmu->dtest_data, 8);
+ sim_write (hw_system (me), sram_addr, mmu->dtest_data, 8);
else
- sim_read (hw_system (me), addr, mmu->dtest_data, 8);
+ sim_read (hw_system (me), sram_addr, mmu->dtest_data, 8);
}
break;
default: