aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2018-07-25 09:47:16 +0200
committerMatthias Welwarsky <matthias@welwarsky.de>2018-08-06 11:19:20 +0100
commit766d6114fea0c2748ed281db866588f975d2ba83 (patch)
tree93d9048e6249de2282ac8d9188cb690a56bc2310
parente48690cb26e4ab3499623c70feae7ad7c54b94bd (diff)
downloadriscv-openocd-766d6114fea0c2748ed281db866588f975d2ba83.zip
riscv-openocd-766d6114fea0c2748ed281db866588f975d2ba83.tar.gz
riscv-openocd-766d6114fea0c2748ed281db866588f975d2ba83.tar.bz2
target/cortex_a: allow command dacrfixup during init phase
There is no reason to restrict the command "cortex_a dacrfixup" to the EXEC phase only. Change the command mode to ANY so the command can be used in the initialization phase too. Change-Id: I498cc6b2dbdc48b3b2dd5f0445519a51857b295f Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/4623 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
-rw-r--r--src/target/cortex_a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index e4d8331..4aae5e4 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -3438,7 +3438,7 @@ static const struct command_registration cortex_a_exec_command_handlers[] = {
{
.name = "dacrfixup",
.handler = handle_cortex_a_dacrfixup_command,
- .mode = COMMAND_EXEC,
+ .mode = COMMAND_ANY,
.help = "set domain access control (DACR) to all-manager "
"on memory access",
.usage = "['on'|'off']",