diff options
| author | Max Filippov | 2020-04-29 00:59:08 +0200 |
|---|---|---|
| committer | Max Filippov | 2020-04-30 13:37:36 +0200 |
| commit | 59afd43daedabe672c289326a5f268f737d35252 (patch) | |
| tree | 5e05536b197aa12ee9d984bd18527f910f322604 /include/exec/plugin-gen.h | |
| parent | Merge remote-tracking branch 'remotes/armbru/tags/pull-misc-2020-04-29' into ... (diff) | |
| download | qemu-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
