From: Spencer O. <nt...@us...> - 2010-03-10 23:23:22
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via edf52a6cc5314a1db34c110050090a539c8ab3ed (commit) from 6030a5cb2af17fc4bb47788265c9b1400318da6b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit edf52a6cc5314a1db34c110050090a539c8ab3ed Author: Spencer Oliver <nt...@us...> Date: Wed Mar 10 22:23:01 2010 +0000 MIPS: make fixed code arrays static const Signed-off-by: Spencer Oliver <nt...@us...> diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c index e0550a8..984b535 100644 --- a/src/target/mips_ejtag.c +++ b/src/target/mips_ejtag.c @@ -129,7 +129,7 @@ int mips_ejtag_drscan_32(struct mips_ejtag *ejtag_info, uint32_t *data) int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info) { - uint32_t code[] = { + static const uint32_t code[] = { MIPS32_MTC0(1,31,0), /* move $1 to COP0 DeSave */ MIPS32_MFC0(1,23,0), /* move COP0 Debug to $1 */ MIPS32_ORI(1,1,0x0100), /* set SSt bit in debug reg */ @@ -145,7 +145,7 @@ int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info) } int mips_ejtag_step_disable(struct mips_ejtag *ejtag_info) { - uint32_t code[] = { + static const uint32_t code[] = { MIPS32_MTC0(15,31,0), /* move $15 to COP0 DeSave */ MIPS32_LUI(15,UPPER16(MIPS32_PRACC_STACK)), /* $15 = MIPS32_PRACC_STACK */ MIPS32_ORI(15,15,LOWER16(MIPS32_PRACC_STACK)), @@ -209,7 +209,7 @@ int mips_ejtag_exit_debug(struct mips_ejtag *ejtag_info) int mips_ejtag_read_debug(struct mips_ejtag *ejtag_info, uint32_t* debug_reg) { /* read ejtag ECR */ - uint32_t code[] = { + static const uint32_t code[] = { MIPS32_MTC0(15,31,0), /* move $15 to COP0 DeSave */ MIPS32_LUI(15,UPPER16(MIPS32_PRACC_STACK)), /* $15 = MIPS32_PRACC_STACK */ MIPS32_ORI(15,15,LOWER16(MIPS32_PRACC_STACK)), ----------------------------------------------------------------------- Summary of changes: src/target/mips_ejtag.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) hooks/post-receive -- Main OpenOCD repository |