{
memset(r, 0, sizeof(*r));
r->dtm_version = 1;
- r->registers_initialized = false;
r->current_hartid = target->coreid;
r->version_specific = NULL;
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)
/* 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;