summaryrefslogtreecommitdiffstats
path: root/include/exec/plugin-gen.h
diff options
context:
space:
mode:
authorMax Filippov2020-04-29 00:59:08 +0200
committerMax Filippov2020-04-30 13:37:36 +0200
commit59afd43daedabe672c289326a5f268f737d35252 (patch)
tree5e05536b197aa12ee9d984bd18527f910f322604 /include/exec/plugin-gen.h
parentMerge remote-tracking branch 'remotes/armbru/tags/pull-misc-2020-04-29' into ... (diff)
downloadqemu-59afd43daedabe672c289326a5f268f737d35252.tar.gz
qemu-59afd43daedabe672c289326a5f268f737d35252.tar.xz
qemu-59afd43daedabe672c289326a5f268f737d35252.zip
target/xtensa: work around missing SR definitions
Xtensa configuration overlays for recent releases may have special registers for which [rwx]sr opcodes are defined, but they are not listed as SR in xtensa_sysreg_name and associated functions. As a result generic translate_[rwx]sr* functions generate access to uninitialized cpu_SR causing segfault at runtime. Don't try to access cpu_SR for such registers, ignore writes and return 0 for reads. Cc: qemu-stable@nongnu.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'include/exec/plugin-gen.h')
0 files changed, 0 insertions, 0 deletions