X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a.c;h=4aae5e4731fff2dfb25edd478446b58f9310c136;hb=766d6114fea0c2748ed281db866588f975d2ba83;hp=b15dcb414f4a6f424dbca7e3fb31ff86eded13a3;hpb=ad6c71e151590f9d07eb07eda978a8d2a845259c;p=openocd.git diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index b15dcb414f..4aae5e4731 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -3229,7 +3229,7 @@ static int cortex_a_virt2phys(struct target *target, struct armv7a_common *armv7a = target_to_armv7a(target); struct adiv5_dap *swjdp = armv7a->arm.dap; uint8_t apsel = swjdp->apsel; - int mmu_enabled; + int mmu_enabled = 0; /* * If the MMU was not enabled at debug entry, there is no @@ -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']",