X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fnds32_reg.c;h=f82ffbfc4e31de9f037d565561a02c028253a042;hb=4a7bb931e37e54e8b0cd9d3a6b41c693d1042106;hp=997f4ed39073e46b2f31260ac5c26374d68cdd03;hpb=f132fcf636361009b4125827351ef01556d49b31;p=openocd.git diff --git a/src/target/nds32_reg.c b/src/target/nds32_reg.c index 997f4ed390..f82ffbfc4e 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;