aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-09-09 12:36:58 -0700
committerTim Newsome <tim@sifive.com>2020-09-09 12:36:58 -0700
commitaa971f3944042f46572b758c5d148a31ab4505ee (patch)
tree768e31da191fab23432332e40b44891bd9362267
parent48e40f35132583d5adc98cd01987d6639d320e55 (diff)
downloadriscv-openocd-static.zip
riscv-openocd-static.tar.gz
riscv-openocd-static.tar.bz2
Make a couple variables static.static
-rw-r--r--src/target/riscv/riscv.c4
-rw-r--r--src/target/riscv/riscv.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index ea06bfb..1abb49a 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -175,8 +175,8 @@ struct scan_field select_idcode = {
bscan_tunnel_type_t bscan_tunnel_type;
int bscan_tunnel_ir_width; /* if zero, then tunneling is not present/active */
-uint8_t bscan_zero[4] = {0};
-uint8_t bscan_one[4] = {1};
+static uint8_t bscan_zero[4] = {0};
+static uint8_t bscan_one[4] = {1};
uint8_t ir_user4[4];
struct scan_field select_user4 = {
diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h
index 5e171d9..f5ee06a 100644
--- a/src/target/riscv/riscv.h
+++ b/src/target/riscv/riscv.h
@@ -229,8 +229,6 @@ extern struct scan_field select_idcode;
extern struct scan_field select_user4;
extern struct scan_field *bscan_tunneled_select_dmi;
extern uint32_t bscan_tunneled_select_dmi_num_fields;
-extern uint8_t bscan_zero[4];
-extern uint8_t bscan_one[4];
typedef enum { BSCAN_TUNNEL_NESTED_TAP, BSCAN_TUNNEL_DATA_REGISTER } bscan_tunnel_type_t;
extern int bscan_tunnel_ir_width;
extern bscan_tunnel_type_t bscan_tunnel_type;