From: Jan Kiszka Date: Tue, 16 Jul 2013 12:45:16 +0000 (+0200) Subject: memory: Return -1 again on reads from unsigned regions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9b8c69243585a32d14b9bb9fcd52c37b0b5a1b71;p=qemu.git 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 Signed-off-by: Paolo Bonzini --- 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,