Skip to content

Commit

Permalink
Merge pull request #1427 from YenHaoChen/pr-textra-sbytemask
Browse files Browse the repository at this point in the history
triggers: fix textra.sbytemask
  • Loading branch information
aswaterman authored Jul 26, 2023
2 parents c59e80e + 6337981 commit ec3c935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/triggers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool trigger_t::textra_match(processor_t * const proc) const noexcept
assert(CSR_TEXTRA32_SBYTEMASK_LENGTH < CSR_TEXTRA64_SBYTEMASK_LENGTH);
for (int i = 0; i < CSR_TEXTRA64_SBYTEMASK_LENGTH; i++)
if (sbytemask & (1 << i))
mask &= 0xff << (i * 8);
mask &= ~(reg_t(0xff) << (i * 8));
if ((state->scontext->read() & mask) != (svalue & mask))
return false;
} else if (sselect == SSELECT_ASID) {
Expand Down

0 comments on commit ec3c935

Please sign in to comment.