Page MenuHomeFreeBSD

arm64: Enable MOPS in userspace
ClosedPublic

Authored by sarah.walker2_arm.com on Jan 6 2026, 3:41 PM.
Tags
None
Referenced Files
F162634030: D54558.diff
Wed, Jul 15, 7:01 AM
F162634029: D54558.diff
Wed, Jul 15, 7:01 AM
Unknown Object (File)
Fri, Jul 10, 5:25 PM
Unknown Object (File)
Thu, Jul 9, 7:31 AM
Unknown Object (File)
Tue, Jul 7, 9:23 PM
Unknown Object (File)
Sun, Jul 5, 6:53 AM
Unknown Object (File)
Fri, Jul 3, 10:20 AM
Unknown Object (File)
Fri, Jul 3, 7:38 AM
Subscribers

Details

Summary

Detect presence of FEAT_MOPS, and enable instruction set and set HWCAP2 flag
if present.

Add handler for MOE exceptions.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew added inline comments.
sys/arm64/arm64/machdep.c
240

Do we need an isb here and below? I assume it's probably safe for userspace only MOPS. In the kernel I expect we would need it as there may not be a context synchronising event before a MOPS instruction is used.

sys/arm64/include/armreg.h
603–606 ↗(On Diff #169188)

In the Arm ARM M.a.a there is a single FormatOption field holding the old OptionA and WrongOption fields (bits 17:16).

Address review comments. Update SHA IFUNC usage.

This revision is now accepted and ready to land.Jan 8 2026, 3:46 PM
jrtc27 requested changes to this revision.Jan 8 2026, 3:59 PM
jrtc27 added a subscriber: jrtc27.
jrtc27 added inline comments.
sys/arm64/arm64/identcpu.c
1098–1099

Indented with spaces not tabs

This revision now requires changes to proceed.Jan 8 2026, 3:59 PM
sys/arm64/include/armreg.h
603 ↗(On Diff #169311)

This define through OPTION_B2 uses spaces not tabs between the name and value

604 ↗(On Diff #169311)

The 5 lines starting here exceed 80 chars, though there are already various violations of that in this file...

680 ↗(On Diff #169311)

Uses spaces not tab before comment

sarah.walker2_arm.com marked an inline comment as done.

Address review comments.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 14 2026, 1:01 AM
This revision was automatically updated to reflect the committed changes.