aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-01-17 15:08:30 -0800
committerGitHub <noreply@github.com>2018-01-17 15:08:30 -0800
commitcb543e804d88ae2421292bc2d85185e9dc7cc5b5 (patch)
treea6145d9300de093a90c449a8a581eb665122fcd5
parent6f9585068f3d3a6e94d89406051412d12c9c22e9 (diff)
parent7f368468c8eedf65b1ed5320828daccf31823a30 (diff)
downloadriscv-openocd-cb543e804d88ae2421292bc2d85185e9dc7cc5b5.zip
riscv-openocd-cb543e804d88ae2421292bc2d85185e9dc7cc5b5.tar.gz
riscv-openocd-cb543e804d88ae2421292bc2d85185e9dc7cc5b5.tar.bz2
Merge pull request #184 from riscv/cleanup
Remove dead code.
-rw-r--r--src/target/riscv/riscv-013.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 4624802..d3d9f50 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -142,10 +142,6 @@ typedef struct {
unsigned datacount;
/* Number of words in the Program Buffer. */
unsigned progbufsize;
- /* The value that mstatus actually has on the target right now. This is not
- * the value we present to the user. That one may be stored in the
- * reg_cache. */
- uint64_t mstatus_actual;
yes_no_maybe_t progbuf_writable;
/* We only need the address so that we know the alignment of the buffer. */
@@ -1875,8 +1871,6 @@ static int riscv013_get_register(struct target *target,
riscv_set_current_hartid(target, hid);
- riscv013_info_t *info = get_info(target);
-
int result = ERROR_OK;
if (rid <= GDB_REGNO_XPR31) {
result = register_read_direct(target, value, rid);
@@ -1893,9 +1887,6 @@ static int riscv013_get_register(struct target *target,
LOG_ERROR("Unable to read register %d", rid);
*value = -1;
}
-
- if (rid == GDB_REGNO_MSTATUS)
- info->mstatus_actual = *value;
}
return result;