aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-15 16:57:08 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-05-15 16:57:08 -0700
commite31761df645da4a96e379aa18925eef496b459a6 (patch)
treebc433cbe6d62985fc96e6e0256002bf72e335b0f /src/target
parent9d308db2bc72378b6b16aec7c58ccc08d21a23a5 (diff)
downloadriscv-openocd-e31761df645da4a96e379aa18925eef496b459a6.zip
riscv-openocd-e31761df645da4a96e379aa18925eef496b459a6.tar.gz
riscv-openocd-e31761df645da4a96e379aa18925eef496b459a6.tar.bz2
Don't re-read registers after they're written
This was just a sanity check.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/riscv/riscv-013.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 4d309cb..e4f758a 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -551,14 +551,6 @@ static int register_write_direct(struct target *target, unsigned number,
return exec_out;
}
- assert(GDB_REGNO_XPR0 == 0);
- if (number <= GDB_REGNO_XPR31) {
- uint64_t written_value;
- register_read_direct(target, &written_value, number);
- LOG_DEBUG("attempted to write 0x%016lx, actually wrote 0x%016lx", value, written_value);
- assert(value == written_value);
- }
-
return ERROR_OK;
}