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
F152279390: D54558.id169188.diff
Mon, Apr 13, 8:53 PM
Unknown Object (File)
Sat, Apr 11, 9:44 PM
Unknown Object (File)
Sat, Apr 11, 8:52 PM
Unknown Object (File)
Tue, Apr 7, 5:31 PM
Unknown Object (File)
Sun, Apr 5, 4:24 PM
Unknown Object (File)
Sat, Apr 4, 2:04 AM
Unknown Object (File)
Wed, Apr 1, 5:50 AM
Unknown Object (File)
Wed, Apr 1, 4:56 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69661
Build 66544: arc lint + arc unit

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

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

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

604

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

678

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.