target/xtensa: get rid of centralized SR properties
commit59419607fb340b776543f52970aefcb784eb046e
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 19 Mar 2019 00:10:38 +0000 (18 17:10 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 10 May 2019 23:53:01 +0000 (10 16:53 -0700)
tree5af5d3ba11c38db57ed3d6ee7e6c746ab3ce9701
parentefb4f3b62c69383a7308d7b739a3193e7c0ccae8
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>
target/xtensa/cpu.h
target/xtensa/helper.c
target/xtensa/translate.c