Skip to content

Commit

Permalink
Fix main.cpp syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Mar 8, 2024
1 parent 68c0db3 commit c250114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/cpp/regression/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ class RiscvGolden {


uint32_t getPendingInterrupt(){
uint32_t mEnabled = status.mie && privilege == 3 || privilege < 3;
uint32_t sEnabled = status.sie && privilege == 1 || privilege < 1;
uint32_t mEnabled = status.mie && (privilege == 3) || privilege < 3;
uint32_t sEnabled = status.sie && (privilege == 1) || privilege < 1;

uint32_t masked = getIp().raw & ~mideleg & -mEnabled & ie.raw;
if (masked == 0)
Expand Down

0 comments on commit c250114

Please sign in to comment.