From e31761df645da4a96e379aa18925eef496b459a6 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Mon, 15 May 2017 16:57:08 -0700 Subject: Don't re-read registers after they're written This was just a sanity check. --- src/target/riscv/riscv-013.c | 8 -------- 1 file changed, 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; } -- cgit v1.1