mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
RAM usage information in machine definition.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4246 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c73f96fddc
commit
7fb4fdcffe
28 changed files with 98 additions and 32 deletions
2
exec.c
2
exec.c
|
@ -2093,7 +2093,7 @@ uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr)
|
|||
ram_addr_t qemu_ram_alloc(unsigned int size)
|
||||
{
|
||||
ram_addr_t addr;
|
||||
if ((phys_ram_alloc_offset + size) >= phys_ram_size) {
|
||||
if ((phys_ram_alloc_offset + size) > phys_ram_size) {
|
||||
fprintf(stderr, "Not enough memory (requested_size = %u, max memory = %d)\n",
|
||||
size, phys_ram_size);
|
||||
abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue