diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-03-18 17:10:38 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-10 16:53:01 -0700 |
commit | 59419607fb340b776543f52970aefcb784eb046e (patch) | |
tree | 5af5d3ba11c38db57ed3d6ee7e6c746ab3ce9701 /target/xtensa/helper.c | |
parent | efb4f3b62c69383a7308d7b739a3193e7c0ccae8 (diff) | |
download | qemu-59419607fb340b776543f52970aefcb784eb046e.zip qemu-59419607fb340b776543f52970aefcb784eb046e.tar.gz qemu-59419607fb340b776543f52970aefcb784eb046e.tar.bz2 |
target/xtensa: get rid of centralized SR properties
SR numbers are not unique: different Xtensa options may reuse SR number
for different purposes. Introduce generic rsr/wsr functions and xsr
template and use them instead of centralized SR access functions. Change
prototypes of specific rsr/wsr functions to match XtensaOpcodeOp and use
them instead of centralized SR access functions. Put xtensa option that
introduces SR into the second opcode description parameter and use it to
test for rsr/wsr/xsr opcode validity. Extract SR and UR names for the
xtensa_cpu_dump_state from libisa. Merge SRs and URs in the dump.
Register names of used SR/UR in init_libisa and use these names for TCG
globals referencing these SR/UR.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/helper.c')
-rw-r--r-- | target/xtensa/helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c index 5f37f37..ed0108a 100644 --- a/target/xtensa/helper.c +++ b/target/xtensa/helper.c @@ -141,6 +141,7 @@ static void init_libisa(XtensaConfig *config) } #endif } + xtensa_collect_sr_names(config); } static void xtensa_finalize_config(XtensaConfig *config) |