]> Git Repo - qemu.git/blobdiff - exec.c
qemu-io: Respect early image end for map
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index 5aa84d4ae30b104cce9583cc86807d17a0a239cb..759055d0e38a160e3eae3ff8a25564d5d380eeaf 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -595,7 +595,7 @@ int cpu_watchpoint_insert(CPUState *cpu, vaddr addr, vaddr len,
     CPUWatchpoint *wp;
 
     /* forbid ranges which are empty or run off the end of the address space */
-    if (len == 0 || (addr + len - 1) <= addr) {
+    if (len == 0 || (addr + len - 1) < addr) {
         error_report("tried to set invalid watchpoint at %"
                      VADDR_PRIx ", len=%" VADDR_PRIu, addr, len);
         return -EINVAL;
@@ -1164,6 +1164,7 @@ static void *file_ram_alloc(RAMBlock *block,
 
 error:
     if (mem_prealloc) {
+        error_report("%s\n", error_get_pretty(*errp));
         exit(1);
     }
     return NULL;
This page took 0.023113 seconds and 4 git commands to generate.