diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2014-09-11 22:14:31 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-10-06 11:57:40 +0000 |
commit | 3160c66408af858c3064e54fb14f074e54ac6701 (patch) | |
tree | 26c57bb046e4c6157a524a31f7a41b4559c00fcc /src/target/nds32_reg.c | |
parent | b675edcc95935cbdf77002db1e261536026f4cbe (diff) | |
download | riscv-openocd-3160c66408af858c3064e54fb14f074e54ac6701.zip riscv-openocd-3160c66408af858c3064e54fb14f074e54ac6701.tar.gz riscv-openocd-3160c66408af858c3064e54fb14f074e54ac6701.tar.bz2 |
target: constify structures
Change-Id: I875cfab8dec4ade72ed9c9cd7d52baaca182a1ef
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2295
Tested-by: jenkins
Diffstat (limited to 'src/target/nds32_reg.c')
-rw-r--r-- | src/target/nds32_reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/nds32_reg.c b/src/target/nds32_reg.c index 997f4ed..f82ffbf 100644 --- a/src/target/nds32_reg.c +++ b/src/target/nds32_reg.c @@ -26,7 +26,7 @@ static bool nds32_reg_init_done; static struct nds32_reg_s nds32_regs[TOTAL_REG_NUM]; -static struct nds32_reg_exception_s nds32_ex_reg_values[] = { +static const struct nds32_reg_exception_s nds32_ex_reg_values[] = { {IR0, 3, 0x3, 2}, {IR0, 3, 0x3, 3}, {IR1, 3, 0x3, 2}, @@ -358,7 +358,7 @@ const char *nds32_reg_symbolic_name(uint32_t number) bool nds32_reg_exception(uint32_t number, uint32_t value) { int i; - struct nds32_reg_exception_s *ex_reg_value; + const struct nds32_reg_exception_s *ex_reg_value; uint32_t field_value; i = 0; |