From 9b8c69243585a32d14b9bb9fcd52c37b0b5a1b71 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 16 Jul 2013 14:45:16 +0200 Subject: [PATCH] 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 --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.4.GIT