Browse Source

Pay attention to dmcs2.grouptype. (#1049)

pull/1050/head
Tim Newsome 4 years ago
committed by GitHub
parent
commit
cdc05e6719
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      riscv/debug_module.cc

4
riscv/debug_module.cc

@ -920,7 +920,9 @@ bool debug_module_t::dmi_write(unsigned address, uint32_t value)
}
return true;
case DM_DMCS2:
if (config.support_haltgroups && get_field(value, DM_DMCS2_HGWRITE)) {
if (config.support_haltgroups &&
get_field(value, DM_DMCS2_HGWRITE) &&
get_field(value, DM_DMCS2_GROUPTYPE) == 0) {
hart_state[dmcontrol.hartsel].haltgroup = get_field(value,
DM_DMCS2_GROUP);
}

Loading…
Cancel
Save