]> git.sur5r.net Git - openocd/blobdiff - src/target/cortex_a.c
target/cortex_a: fix compile error for uninitialized variable
[openocd] / src / target / cortex_a.c
index b15dcb414f4a6f424dbca7e3fb31ff86eded13a3..e4d8331b291bb721258c77fdbe14229e434fb7ab 100644 (file)
@@ -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