]> git.proxmox.com Git - qemu.git/blobdiff - exec.c
RAM usage information in machine definition.
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index 877de89f1d692668169968b368310ed1e8c7d0e1..09401371a939661b030f993b14e8035522f6a73f 100644 (file)
--- a/exec.c
+++ b/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();