]> git.sur5r.net Git - openocd/commit
aarch64: allow reading system control register when halted in EL0
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Thu, 6 Oct 2016 14:19:20 +0000 (16:19 +0200)
committerMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Fri, 10 Feb 2017 13:18:34 +0000 (14:18 +0100)
commita76e88daa645d7137c8415f48793525f2ba98545
treea9631c287e24273f9fc2b5c65defe410ba36af6a
parent675b0170f2752c285de359f235e50a208f7f138a
aarch64: allow reading system control register when halted in EL0

There's no access to system control register in EL0. Circumvent by
moving the PE to EL1 before reading, and switch back to original mode
afterwards.

Change-Id: I309f4eea5597ffc88fc892e9bbb826982e8a44ec
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
src/target/aarch64.c