mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Revert "memory: Return -1 again on reads from unsigned regions"
This reverts commit 9b8c692435
.
The commit was wrong: We only return -1 on invalid accesses, not on
valid but unbacked ones. This broke various corner cases.
Cc: qemu-stable@nongnu.org
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3bb28b7208
commit
68a7439a15
1 changed files with 1 additions and 1 deletions
2
memory.c
2
memory.c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue