Received: from eggs.gnu.org ([2001:4830:134:3::10]:33806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0GyN-0002s1-OU for qemu-devel@nongnu.org; Fri, 19 Jul 2013 16:08:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0GyM-0007kX-QU for qemu-devel@nongnu.org; Fri, 19 Jul 2013 16:08:15 -0400 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:35289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0GyM-0007k7-Dh for qemu-devel@nongnu.org; Fri, 19 Jul 2013 16:08:14 -0400 Received: by mail-ee0-f51.google.com with SMTP id e52so2554169eek.38 for ; Fri, 19 Jul 2013 13:08:13 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 19 Jul 2013 22:07:57 +0200 Message-Id: <1374264478-23913-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1374264478-23913-1-git-send-email-pbonzini@redhat.com> References: <1374264478-23913-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 3/4] memory: Return -1 again on reads from unsigned regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka From: Jan Kiszka 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 --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory.c b/memory.c index 9938b6b..34a088e 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, -- 1.8.1.4