aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa/overlay_tool.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-04-28 15:59:08 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2020-04-30 04:37:36 -0700
commit59afd43daedabe672c289326a5f268f737d35252 (patch)
tree5e05536b197aa12ee9d984bd18527f910f322604 /target/xtensa/overlay_tool.h
parent648db19685b7030aa558a4ddbd3a8e53d8c9a062 (diff)
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 'target/xtensa/overlay_tool.h')
0 files changed, 0 insertions, 0 deletions