Page MenuHomeFreeBSD

arm64: Enable MOPS in userspace
ClosedPublic

Authored by sarah.walker2_arm.com on Tue, Jan 6, 3:41 PM.
Tags
None
Referenced Files
F142128755: D54558.id169397.diff
Fri, Jan 16, 7:27 AM
F142124730: D54558.id169397.diff
Fri, Jan 16, 6:23 AM
F142118049: D54558.id169311.diff
Fri, Jan 16, 4:38 AM
F142113734: D54558.id169188.diff
Fri, Jan 16, 3:32 AM
F142085492: D54558.id169659.diff
Thu, Jan 15, 10:02 PM
F142061880: D54558.diff
Thu, Jan 15, 4:09 PM
Unknown Object (File)
Wed, Jan 14, 11:58 AM
Unknown Object (File)
Mon, Jan 12, 11:49 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.Thu, Jan 8, 3:46 PM
jrtc27 requested changes to this revision.Thu, Jan 8, 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.Thu, Jan 8, 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.Wed, Jan 14, 1:01 AM
This revision was automatically updated to reflect the committed changes.