diff options
author | Tim Newsome <tim@sifive.com> | 2023-03-28 12:59:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 12:59:40 -0700 |
commit | e6006503cbe428836eff22d86259d04ef066dc0a (patch) | |
tree | 94ad51962ba9e1796f1c01ddc382def378297ddc /src/target | |
parent | a01bd76e5c10eba8bc3481eb7552fb8feab79f91 (diff) | |
parent | 5bc9c207eb3548c61d8efd56db727bbd6ee15a7e (diff) | |
download | riscv-openocd-e6006503cbe428836eff22d86259d04ef066dc0a.zip riscv-openocd-e6006503cbe428836eff22d86259d04ef066dc0a.tar.gz riscv-openocd-e6006503cbe428836eff22d86259d04ef066dc0a.tar.bz2 |
Merge pull request #826 from riscv/icount_maskmax
target/riscv: Don't ignore maskmax for icount.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/riscv/riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 3c91526..167d17f 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -854,7 +854,7 @@ static int maybe_add_trigger_t3(struct target *target, bool vs, bool vu, ret = find_next_free_trigger(target, CSR_TDATA1_TYPE_ICOUNT, false, &idx); if (ret != ERROR_OK) return ret; - ret = set_trigger(target, idx, tdata1, 0, CSR_MCONTROL_MASKMAX(riscv_xlen(target))); + ret = set_trigger(target, idx, tdata1, 0, 0); if (ret != ERROR_OK) return ret; r->trigger_unique_id[idx] = unique_id; |