summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-07-16 14:45:16 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-18 06:03:25 +0200
commit9b8c69243585a32d14b9bb9fcd52c37b0b5a1b71 (patch)
treed8fa7d9ce9f175974aed18771055246ee3695687 /memory.c
parentb4afea11aafe85975e74dd562bb94f7ce3de1ef1 (diff)
downloadqemu-9b8c69243585a32d14b9bb9fcd52c37b0b5a1b71.tar.gz
memory: Return -1 again on reads from unsigned regions
This restore the behavior prior to b018ddf633 which accidentally changed the return code to 0. Specifically guests probing for register existence were affected by this. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index 9938b6ba45..34a088e90f 100644
--- a/memory.c
+++ b/memory.c
@@ -840,7 +840,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr,
if (current_cpu != NULL) {
cpu_unassigned_access(current_cpu, addr, false, false, 0, size);
}
- return 0;
+ return -1ULL;
}
static void unassigned_mem_write(void *opaque, hwaddr addr,