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
F115781358: D31949.diff
Mon, Apr 28, 2:00 PM
Unknown Object (File)
Sat, Apr 5, 9:41 PM
Unknown Object (File)
Mar 27 2025, 1:06 AM
Unknown Object (File)
Feb 22 2025, 2:01 PM
Unknown Object (File)
Feb 14 2025, 5:15 PM
Unknown Object (File)
Jan 26 2025, 7:54 PM
Unknown Object (File)
Jan 22 2025, 8:37 PM
Unknown Object (File)
Jan 9 2025, 2:15 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.