]> git.sur5r.net Git - openocd/blobdiff - src/target/embeddedice.c
arm: add error propagation for enable/disable mmu caches
[openocd] / src / target / embeddedice.c
index 69f3a7681e1a5049ee7366c1c0b056ead8dd89dc..7ef4ac421b5aee57f69a245baaa6ca45ed63c6c7 100644 (file)
@@ -47,6 +47,8 @@
  * core entered debug mode.
  */
 
+static int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf);
+
 /*
  * From:  ARM9E-S TRM, DDI 0165, table C-4 (and similar, for other cores)
  */
@@ -469,7 +471,7 @@ void embeddedice_set_reg(struct reg *reg, uint32_t value)
  * Write an EmbeddedICE register, updating the register cache.
  * Uses embeddedice_set_reg(); not queued.
  */
-int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf)
+static int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf)
 {
        int retval;