diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2010-06-25 11:09:35 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:36:28 -0500 |
commit | d5e27852d5343c5094d842986a40273bdd92a1e0 (patch) | |
tree | 8314db5ca99ed66015af03c2bf494177ae5e4460 /hw/mcf5208.c | |
parent | a57d621b1d46be3fa6aa389005bbaaf8d5ce06e6 (diff) | |
download | qemu-d5e27852d5343c5094d842986a40273bdd92a1e0.tar.gz qemu-d5e27852d5343c5094d842986a40273bdd92a1e0.tar.bz2 qemu-d5e27852d5343c5094d842986a40273bdd92a1e0.zip |
qemu_ram_alloc: Add DeviceState and name parameters
These will be used to generate unique id strings for ramblocks. The name
field is required, the device pointer is optional as most callers don't
have a device. When there's no device or the device isn't a child of
a bus implementing BusInfo.get_dev_path, the name should be unique for
the platform.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mcf5208.c')
-rw-r--r-- | hw/mcf5208.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mcf5208.c b/hw/mcf5208.c index 5b686c657a..38645f7285 100644 --- a/hw/mcf5208.c +++ b/hw/mcf5208.c @@ -220,11 +220,11 @@ static void mcf5208evb_init(ram_addr_t ram_size, /* DRAM at 0x40000000 */ cpu_register_physical_memory(0x40000000, ram_size, - qemu_ram_alloc(ram_size) | IO_MEM_RAM); + qemu_ram_alloc(NULL, "mcf5208.ram", ram_size) | IO_MEM_RAM); /* Internal SRAM. */ cpu_register_physical_memory(0x80000000, 16384, - qemu_ram_alloc(16384) | IO_MEM_RAM); + qemu_ram_alloc(NULL, "mcf5208.sram", 16384) | IO_MEM_RAM); /* Internal peripherals. */ pic = mcf_intc_init(0xfc048000, env); |