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)
Sun, May 17, 3:39 PM
Unknown Object (File)
Sun, May 17, 10:50 AM
Unknown Object (File)
Thu, Apr 30, 9:05 AM
Unknown Object (File)
Apr 17 2026, 3:43 AM
Unknown Object (File)
Apr 11 2026, 3:28 PM
Unknown Object (File)
Apr 6 2026, 6:22 AM
Unknown Object (File)
Mar 19 2026, 8:57 PM
Unknown Object (File)
Mar 12 2026, 6:29 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.