Commit 68a7439a authored by Jan Kiszka's avatar Jan Kiszka Committed by Paolo Bonzini
Browse files

Revert "memory: Return -1 again on reads from unsigned regions"

This reverts commit 9b8c6924


The commit was wrong: We only return -1 on invalid accesses, not on
valid but unbacked ones. This broke various corner cases.

Signed-off-by: default avatarJan Kiszka <>
Signed-off-by: default avatarPaolo Bonzini <>
parent 3bb28b72
......@@ -872,7 +872,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 -1ULL;
return 0;
static void unassigned_mem_write(void *opaque, hwaddr addr,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment