Page MenuHomeFreeBSD

arm64: Fix a logic bug in is_load_instr().
ClosedPublic

Authored by jhb on Sep 13 2021, 6:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 22, 1:29 AM
Unknown Object (File)
Tue, Jul 21, 12:30 PM
Unknown Object (File)
Sun, Jul 19, 7:12 PM
Unknown Object (File)
Sat, Jul 18, 10:00 AM
Unknown Object (File)
Tue, Jul 14, 6:27 PM
Unknown Object (File)
Sat, Jul 11, 8:01 PM
Unknown Object (File)
Tue, Jul 7, 4:40 AM
Unknown Object (File)
Tue, Jul 7, 3:30 AM
Subscribers

Details

Summary

Logical and ('&&') was used to join two conditions instead of logical
or ('||') causing some store instructions to not be recognized.

Reported by: GCC 9 -Wparentheses

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41503
Build 38392: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2021, 6:30 PM

I wonder if we need this. The store macro looks broken, they are only used in ddb to count instructions, and are defined as 0 on most architectures.

This revision is now accepted and ready to land.Sep 15 2021, 9:12 AM

I have no idea if this is needed or not TBH.

This revision was automatically updated to reflect the committed changes.