aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-05-18 17:53:03 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-10 12:10:22 -0400
commitddfc8b96eec648f35f0f054bd3f0a05df6cd34fb (patch)
tree09d26ee645826170cd55f6bf934c473b55ec28d6 /include/exec
parent38df19fad71abe8823f8b416f672be95c2ac8d04 (diff)
downloadqemu-ddfc8b96eec648f35f0f054bd3f0a05df6cd34fb.zip
qemu-ddfc8b96eec648f35f0f054bd3f0a05df6cd34fb.tar.gz
qemu-ddfc8b96eec648f35f0f054bd3f0a05df6cd34fb.tar.bz2
exec: Propagate cpu_memory_rw_debug() error
Do not ignore the MemTxResult error type returned by the address_space_rw() API. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/cpu-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index d14374b..fb4e8a8 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -413,6 +413,7 @@ void dump_exec_info(void);
void dump_opcount_info(void);
#endif /* !CONFIG_USER_ONLY */
+/* Returns: 0 on success, -1 on error */
int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
void *ptr, target_ulong len, bool is_write);