OSDN Git Service

target/ppc: Implement the DEXCR and HDEXCR
authorNicholas Miehlbradt <nicholas@linux.ibm.com>
Tue, 20 Dec 2022 04:23:29 +0000 (04:23 +0000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 21 Dec 2022 17:17:55 +0000 (14:17 -0300)
commit395b5d5b455ac3f6ebf9534454b7187a1d6118a4
tree7a4413290f12bb03683a3ba04bb500420fcddb57
parent320c5ad8fffe8ce7562fcc34975398bb4bb50666
target/ppc: Implement the DEXCR and HDEXCR

Define the DEXCR and HDEXCR as special purpose registers.

Each register occupies two SPR indicies, one which can be read in an
unprivileged state and one which can be modified in the appropriate
priviliged state, however both indicies refer to the same underlying
value.

Note that the ISA uses the abbreviation UDEXCR in two different
contexts: the userspace DEXCR, the SPR index which can be read from
userspace (implemented in this patch), and the ultravisor DEXCR, the
equivalent register for the ultravisor state (not implemented).

Signed-off-by: Nicholas Miehlbradt <nicholas@linux.ibm.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221220042330.2387944-2-nicholas@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/spr_common.h
target/ppc/translate.c