Skip to content

Commit deaa293

Browse files
Prevent compiler warning [-Wparentheses]
Signed-off-by: Harry Callahan <[email protected]>
1 parent 4c5dac7 commit deaa293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dv/cosim/spike_cosim.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,8 @@ bool SpikeCosim::pc_is_debug_ebreak(uint32_t pc) {
10521052
// ebreak debug entry is controlled by the ebreakm (bit 15) and ebreaku (bit
10531053
// 12) fields of DCSR. If the appropriate bit of the current privlege level
10541054
// isn't set ebreak won't enter debug so return false.
1055-
if ((processor->get_state()->prv == PRV_M) && ((dcsr & 0x1000) == 0) ||
1056-
(processor->get_state()->prv == PRV_U) && ((dcsr & 0x8000) == 0)) {
1055+
if (((processor->get_state()->prv == PRV_M) && ((dcsr & 0x1000) == 0)) ||
1056+
((processor->get_state()->prv == PRV_U) && ((dcsr & 0x8000) == 0))) {
10571057
return false;
10581058
}
10591059

0 commit comments

Comments
 (0)