Skip to content

Commit d3a2ee5

Browse files
rth7680pm215
authored andcommitted
target/arm: Remove define_arm_vh_e2h_redirects_aliases
Populate vhe_redir_to_{el2,el01} on each ARMCPRegInfo. Clear the fields within add_cpreg_to_hashtable_aa32. Create the FOO_EL12 cpreg within add_cpreg_to_hashtable_aa64; add ARM_CP_NO_RAW. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1 parent 2afdc4c commit d3a2ee5

File tree

2 files changed

+107
-142
lines changed

2 files changed

+107
-142
lines changed

target/arm/cpregs.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,10 @@ struct ARMCPRegInfo {
943943
uint32_t vhe_redir_to_el2;
944944

945945
/*
946-
* With VHE, with E2H, at EL2+, access to this EL02/EL12 reg
947-
* redirects to the EL0/EL1 reg with the specified key.
946+
* For VHE. Before registration, this field holds the key for an
947+
* EL02/EL12 reg to be created to point back to this EL0/EL1 reg.
948+
* After registration, this field is set only on the EL02/EL12 reg
949+
* and points back to the EL02/EL12 reg for redirection with E2H.
948950
*/
949951
uint32_t vhe_redir_to_el01;
950952

0 commit comments

Comments
 (0)