aboutsummaryrefslogtreecommitdiff
path: root/src/target/openrisc
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2014-09-11 22:14:31 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2014-10-06 11:57:40 +0000
commit3160c66408af858c3064e54fb14f074e54ac6701 (patch)
tree26c57bb046e4c6157a524a31f7a41b4559c00fcc /src/target/openrisc
parentb675edcc95935cbdf77002db1e261536026f4cbe (diff)
downloadriscv-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/openrisc')
-rw-r--r--src/target/openrisc/jsp_server.c2
-rw-r--r--src/target/openrisc/or1k.c2
-rw-r--r--src/target/openrisc/or1k_tap_vjtag.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/target/openrisc/jsp_server.c b/src/target/openrisc/jsp_server.c
index 597bfcb..83e03ae 100644
--- a/src/target/openrisc/jsp_server.c
+++ b/src/target/openrisc/jsp_server.c
@@ -37,7 +37,7 @@ static char *jsp_port;
* the client should be forced into character mode. However it doesn't make any difference.
*/
-static char *negotiate =
+static const char * const negotiate =
"\xFF\xFB\x03" /* IAC WILL Suppress Go Ahead */
"\xFF\xFB\x01" /* IAC WILL Echo */
"\xFF\xFD\x03" /* IAC DO Suppress Go Ahead */
diff --git a/src/target/openrisc/or1k.c b/src/target/openrisc/or1k.c
index bd373a7..aeef0a5 100644
--- a/src/target/openrisc/or1k.c
+++ b/src/target/openrisc/or1k.c
@@ -50,7 +50,7 @@ static int or1k_write_core_reg(struct target *target, int num);
static struct or1k_core_reg *or1k_core_reg_list_arch_info;
-struct or1k_core_reg_init or1k_init_reg_list[] = {
+static const struct or1k_core_reg_init or1k_init_reg_list[] = {
{"r0" , GROUP0 + 1024, "org.gnu.gdb.or1k.group0", NULL},
{"r1" , GROUP0 + 1025, "org.gnu.gdb.or1k.group0", NULL},
{"r2" , GROUP0 + 1026, "org.gnu.gdb.or1k.group0", NULL},
diff --git a/src/target/openrisc/or1k_tap_vjtag.c b/src/target/openrisc/or1k_tap_vjtag.c
index 513d8a7..fcc832a 100644
--- a/src/target/openrisc/or1k_tap_vjtag.c
+++ b/src/target/openrisc/or1k_tap_vjtag.c
@@ -61,7 +61,7 @@
#define OR1K_TAP_INST_IDCODE 0x2
#define OR1K_TAP_INST_DEBUG 0x8
-static char *id_to_string(unsigned char id)
+static const char *id_to_string(unsigned char id)
{
switch (id) {
case VJTAG_NODE_ID: