summary refs log tree commit diff stats
path: root/qemu-config.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-04-14 19:19:00 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-04-15 18:16:34 +0000
commit1a00282a739d5cb7247ac3634ddd3e76537ef5eb (patch)
tree822916c04752ee55eb099c4981b648bbe50d8b6f /qemu-config.c
parentcb842c90a485d9dbf05fa51e1500b3c1a1931256 (diff)
downloadfocaccia-qemu-1a00282a739d5cb7247ac3634ddd3e76537ef5eb.tar.gz
focaccia-qemu-1a00282a739d5cb7247ac3634ddd3e76537ef5eb.zip
sparc: Fix assertion caused by empty memory slot with 0 byte
If the memory size given on the command line is equal to the
maximum size of memory defined by the hardware, there is no
"empty slot" after physical memory.

The following command

		qemu-system-sparc -m 256

raised an assertion:
exec.c:2614: cpu_register_physical_memory_offset: Assertion `size' failed

This can be fixed either at the caller side (don't call empty_slot_init)
or in empty_slot_init (do nothing) when size == 0. The second solution
was choosen here because it is more robust.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Diffstat (limited to 'qemu-config.c')
0 files changed, 0 insertions, 0 deletions