projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jtag/drivers/stlink: fix SRST issue with stlink-v1
[fw/openocd]
/
src
/
target
/
nds32_reg.c
diff --git
a/src/target/nds32_reg.c
b/src/target/nds32_reg.c
index 997f4ed39073e46b2f31260ac5c26374d68cdd03..f82ffbfc4e31de9f037d565561a02c028253a042 100644
(file)
--- 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 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},
{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;
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;
uint32_t field_value;
i = 0;