]> Git Repo - qemu.git/commit
exec.c: Use correct attrs in cpu_memory_rw_debug()
authorPeter Maydell <[email protected]>
Tue, 29 Jan 2019 11:46:04 +0000 (11:46 +0000)
committerPeter Maydell <[email protected]>
Tue, 29 Jan 2019 11:46:04 +0000 (11:46 +0000)
commitea7a5330b79523540ba776c529b09dc8cf3fa0c5
treeafe8fd333d58ffe81b040641bebca0c0e4c93fd3
parentb36356f69941bcda47ac3d97c2b05757728575c9
exec.c: Use correct attrs in cpu_memory_rw_debug()

In the softmmu version of cpu_memory_rw_debug(), we ask the
CPU for the attributes to use for the virtual memory access,
and we correctly use those to identify the address space
index. However, we were not passing them in to the
address_space_write_rom() and address_space_rw() functions.

The effect of this was that a memory access from the gdbstub
to a device which had behaviour that was sensitive to the
memory attributes (such as some ARMv8M NVIC registers) was
incorrectly always performed as if non-secure, rather than
using the right security state for the CPU's current state.

Fixes: https://bugs.launchpad.net/qemu/+bug/1812091
Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20190117133834[email protected]
exec.c
This page took 0.023035 seconds and 4 git commands to generate.