diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2022-05-26 09:26:14 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-06-04 08:20:09 +0000 |
commit | 7e9e5dca073d7a11c2391f57872e97372d94ad48 (patch) | |
tree | 4cf922778e5692154a18d362dedbb881797404e5 /src/target | |
parent | 78c87f5e81f8b3ee2a72aa546f87985596cb2b9f (diff) | |
download | riscv-openocd-7e9e5dca073d7a11c2391f57872e97372d94ad48.zip riscv-openocd-7e9e5dca073d7a11c2391f57872e97372d94ad48.tar.gz riscv-openocd-7e9e5dca073d7a11c2391f57872e97372d94ad48.tar.bz2 |
target/riscv: drop unused variable registers_initialized
Change-Id: If7bfe38ac273ce9e54003e003807e128cced1568
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6995
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/riscv/riscv.c | 5 | ||||
-rw-r--r-- | src/target/riscv/riscv.h | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index a266f5d..e2d8e70 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -3202,7 +3202,6 @@ void riscv_info_init(struct target *target, riscv_info_t *r) { memset(r, 0, sizeof(*r)); r->dtm_version = 1; - r->registers_initialized = false; r->current_hartid = target->coreid; r->version_specific = NULL; @@ -3301,16 +3300,12 @@ int riscv_set_current_hartid(struct target *target, int hartid) void riscv_invalidate_register_cache(struct target *target) { - RISCV_INFO(r); - LOG_DEBUG("[%d]", target->coreid); register_cache_invalidate(target->reg_cache); for (size_t i = 0; i < target->reg_cache->num_regs; ++i) { struct reg *reg = &target->reg_cache->reg_list[i]; reg->valid = false; } - - r->registers_initialized = true; } int riscv_current_hartid(const struct target *target) diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h index 0ae8945..6eb9158 100644 --- a/src/target/riscv/riscv.h +++ b/src/target/riscv/riscv.h @@ -118,9 +118,6 @@ typedef struct { /* The number of entries in the debug buffer. */ int debug_buffer_size; - /* This avoids invalidating the register cache too often. */ - bool registers_initialized; - /* This hart contains an implicit ebreak at the end of the program buffer. */ bool impebreak; |