summaryrefslogtreecommitdiffstats
path: root/gdbstub.c
diff options
context:
space:
mode:
authorAlex Bennée2021-10-26 12:22:26 +0200
committerAlex Bennée2021-11-04 11:32:01 +0100
commit357af9be5ca47ae8ac2bc439de4bb9a39e186fd4 (patch)
tree763bcbb19526f9542e9a28568713594ceb1e95ba /gdbstub.c
parenttests/plugins: extend the insn plugin to track opcode sizes (diff)
downloadqemu-357af9be5ca47ae8ac2bc439de4bb9a39e186fd4.tar.gz
qemu-357af9be5ca47ae8ac2bc439de4bb9a39e186fd4.tar.xz
qemu-357af9be5ca47ae8ac2bc439de4bb9a39e186fd4.zip
plugins: try and make plugin_insn_append more ergonomic
Currently we make the assumption that the guest frontend loads all op code bytes sequentially. This mostly holds up for regular fixed encodings but some architectures like s390x like to re-read the instruction which causes weirdness to occur. Rather than changing the frontends make the plugin API a little more ergonomic and able to handle the re-read case. Stuff will still get strange if we read ahead of the opcode but so far no front ends have done that and this patch asserts the case so we can catch it early if they do. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211026102234.3961636-21-alex.bennee@linaro.org>
Diffstat (limited to 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions