diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-05-15 16:57:08 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-05-15 16:57:08 -0700 |
commit | e31761df645da4a96e379aa18925eef496b459a6 (patch) | |
tree | bc433cbe6d62985fc96e6e0256002bf72e335b0f | |
parent | 9d308db2bc72378b6b16aec7c58ccc08d21a23a5 (diff) | |
download | riscv-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.
-rw-r--r-- | src/target/riscv/riscv-013.c | 8 |
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; } |