aboutsummaryrefslogtreecommitdiff
path: root/src/target/mips32_pracc.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-11-22 20:18:26 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-11-22 20:18:26 +0100
commit2d6829d6982fa485b8cabb3a91e41b9c50c7f3d1 (patch)
tree04714e5148178a6a422c43cbfd600b0ad30f4ff8 /src/target/mips32_pracc.h
parent5985dee35da3ea24f1c9cb30b6cd50aa1bc63660 (diff)
downloadriscv-openocd-2d6829d6982fa485b8cabb3a91e41b9c50c7f3d1.zip
riscv-openocd-2d6829d6982fa485b8cabb3a91e41b9c50c7f3d1.tar.gz
riscv-openocd-2d6829d6982fa485b8cabb3a91e41b9c50c7f3d1.tar.bz2
mips: use const for code sequences
This will allow data to be allocated in read only memory instead of on the stack. Speeds things up and reduces stack usage. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/mips32_pracc.h')
-rw-r--r--src/target/mips32_pracc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips32_pracc.h b/src/target/mips32_pracc.h
index 3b124c7..5d1cf3d 100644
--- a/src/target/mips32_pracc.h
+++ b/src/target/mips32_pracc.h
@@ -63,7 +63,7 @@ int mips32_pracc_write_u32(struct mips_ejtag *ejtag_info,
int mips32_pracc_read_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
int mips32_pracc_write_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
-int mips32_pracc_exec(struct mips_ejtag *ejtag_info, int code_len, uint32_t *code,
+int mips32_pracc_exec(struct mips_ejtag *ejtag_info, int code_len, const uint32_t *code,
int num_param_in, uint32_t *param_in,
int num_param_out, uint32_t *param_out, int cycle);