Skip to content

Commit

Permalink
Fix PR#68
Browse files Browse the repository at this point in the history
Trivial edit, so made without PR.

Signed-off-by: Robert Chyla (MIPS) <154632854+mipsrobert@users.noreply.github.com>
  • Loading branch information
mipsrobert authored Sep 16, 2024
1 parent 807fd24 commit 7ee8127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/RISC-V-N-Trace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1920,9 +1920,9 @@ void NTraceEncoderHandleRetired(uint64_t addr, uint32_t info)
{
// Update branch history buffer (add least significant bit)
if (InfoIsBranchTaken(info))
encoHIST = (encoHIST << 1) | 0; // Mark branch as taken
encoHIST = (encoHIST << 1) | 1; // Mark branch as taken
else
encoHIST = (encoHIST << 1) | 1; // Mark branch as not-taken
encoHIST = (encoHIST << 1) | 0; // Mark branch as not-taken
}
else
{
Expand Down

1 comment on commit 7ee8127

@mipsrobert
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fix for issue #68

Please sign in to comment.