提交 9b8c6924 编写于 作者: J Jan Kiszka 提交者: Paolo Bonzini

memory: Return -1 again on reads from unsigned regions

This restore the behavior prior to b018ddf6 which accidentally changed
the return code to 0. Specifically guests probing for register existence
were affected by this.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 b4afea11
...@@ -840,7 +840,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr, ...@@ -840,7 +840,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr,
if (current_cpu != NULL) { if (current_cpu != NULL) {
cpu_unassigned_access(current_cpu, addr, false, false, 0, size); cpu_unassigned_access(current_cpu, addr, false, false, 0, size);
} }
return 0; return -1ULL;
} }
static void unassigned_mem_write(void *opaque, hwaddr addr, static void unassigned_mem_write(void *opaque, hwaddr addr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册