Aarch64:Switch to EL1 from EL0 before manipulate MMU
authorCheng-Shiun Tsai <cheng.shiun.tsai@gmail.com>
Sat, 6 Feb 2021 23:04:14 +0000 (23:04 +0000)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Apr 2021 14:32:24 +0000 (15:32 +0100)
commita9904ba22c6a8c9cd56c85296e80396c9e05ee9e
treea66cbcdb21c6183e3e40f41b587bd24cbf938b76
parentfa94a42a09aadc3851015bbaedecd0300732a8b1
Aarch64:Switch to EL1 from EL0 before manipulate MMU

If current core is in EL0, it cannot use 'msr sctlr_el1, x0'

Change-Id: I04e60e39e4c84f9d9de7cc87a8e438f5d2737dc3
Signed-off-by: Cheng-Shiun Tsai <cheng.shiun.tsai@gmail.com>
Reviewed-on: http://openocd.zylin.com/6051
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/target/aarch64.c