diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-07-16 14:45:16 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-18 06:03:25 +0200 |
commit | 9b8c69243585a32d14b9bb9fcd52c37b0b5a1b71 (patch) | |
tree | d8fa7d9ce9f175974aed18771055246ee3695687 | |
parent | b4afea11aafe85975e74dd562bb94f7ce3de1ef1 (diff) |
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>
-rw-r--r-- | memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |