aarch64: Use 64-bit reads/writes to access SCTLR_EL1
commit393da819b14c62d267cf5ec86bc511c187e1af18
authorPeter Collingbourne <pcc@google.com>
Wed, 18 Oct 2023 02:04:00 +0000 (17 19:04 -0700)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 18 Nov 2023 11:21:38 +0000 (18 11:21 +0000)
tree3b57dbdcc6b9b970f60623ea8b3fd7a3a248cf82
parentee96a95d44322aa109847e35b86aed5ad3066cf8
aarch64: Use 64-bit reads/writes to access SCTLR_EL1

We were previously inadvertently clearing the top 32 bits of SCTLR_EL1
during read_memory/write_memory as a result of using 32-bit operations
to access the register and because the fields used to temporarily
store the register were 32-bit. Fix it.

Change-Id: I657d7f949e1f7ab6bf90609e3f91cae09cade31a
Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7939
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/aarch64.c
src/target/aarch64.h