From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz7Dh-0001kP-TY for qemu-devel@nongnu.org; Tue, 16 Jul 2013 11:31:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz7Dg-0003rp-PE for qemu-devel@nongnu.org; Tue, 16 Jul 2013 11:31:17 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:60286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz7Dg-0003rS-Jp for qemu-devel@nongnu.org; Tue, 16 Jul 2013 11:31:16 -0400 Received: by mail-ea0-f170.google.com with SMTP id h10so462111eaj.29 for ; Tue, 16 Jul 2013 08:31:15 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 16 Jul 2013 17:31:02 +0200 Message-Id: <1373988662-19211-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1373988662-19211-1-git-send-email-pbonzini@redhat.com> References: <1373988662-19211-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] 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: peter.maydell@linaro.org, stefanha@redhat.com, jan.kiszka@siemens.com 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