summaryrefslogtreecommitdiffstats
path: root/hw/microblaze/petalogix_ml605_mmu.c
diff options
context:
space:
mode:
authorPeter Crosthwaite2014-08-18 02:52:38 +0200
committerMichael Tokarev2014-08-24 11:16:32 +0200
commitf55f8852675f1ece8739b5f89aeda8418c483367 (patch)
treeb33a769ff8e283200f79aa84e986b48d6d798105 /hw/microblaze/petalogix_ml605_mmu.c
parenttests/bios-tables-test: check the value returned by fopen() (diff)
downloadqemu-f55f8852675f1ece8739b5f89aeda8418c483367.tar.gz
qemu-f55f8852675f1ece8739b5f89aeda8418c483367.tar.xz
qemu-f55f8852675f1ece8739b5f89aeda8418c483367.zip
microblaze: ml605: Get rid of ddr_base variable
It's a constant based on a macro. Just use the macro in place. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/microblaze/petalogix_ml605_mmu.c')
-rw-r--r--hw/microblaze/petalogix_ml605_mmu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c
index aea9c5b49f..6843abf547 100644
--- a/hw/microblaze/petalogix_ml605_mmu.c
+++ b/hw/microblaze/petalogix_ml605_mmu.c
@@ -89,7 +89,6 @@ petalogix_ml605_init(MachineState *machine)
SysBusDevice *busdev;
DriveInfo *dinfo;
int i;
- hwaddr ddr_base = MEMORY_BASEADDR;
MemoryRegion *phys_lmb_bram = g_new(MemoryRegion, 1);
MemoryRegion *phys_ram = g_new(MemoryRegion, 1);
qemu_irq irq[32];
@@ -106,7 +105,7 @@ petalogix_ml605_init(MachineState *machine)
memory_region_init_ram(phys_ram, NULL, "petalogix_ml605.ram", ram_size);
vmstate_register_ram_global(phys_ram);
- memory_region_add_subregion(address_space_mem, ddr_base, phys_ram);
+ memory_region_add_subregion(address_space_mem, MEMORY_BASEADDR, phys_ram);
dinfo = drive_get(IF_PFLASH, 0, 0);
/* 5th parameter 2 means bank-width
@@ -201,7 +200,7 @@ petalogix_ml605_init(MachineState *machine)
}
}
- microblaze_load_kernel(cpu, ddr_base, ram_size,
+ microblaze_load_kernel(cpu, MEMORY_BASEADDR, ram_size,
machine->initrd_filename,
BINARY_DEVICE_TREE_FILE,
machine_cpu_reset);