forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Assembly support for the Armv9.5-A RAS Extensions (llvm#76161)
This implements assembly support for the RAS extensions introduced as part of the Armv9.5-A architecture version. The changes include: * New system registers for Delegated SError exceptions for EL3 (FEAT_E3DSE): * VDISR_EL3 * VSESR_EL3 Mode details about these extensions can be found at: * https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-a-profile-architecture-developments-2023 * https://developer.arm.com/documentation/ddi0602/2023-09/ Co-authored-by: Jirui Wu <jirui.wu@arm.com> Co-authored-by: Oliver Stannard <oliver.stannard@arm.com>
- Loading branch information
1 parent
0ac1dfa
commit 7109a46
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: llvm-mc -triple aarch64 -show-encoding < %s | FileCheck %s | ||
|
||
mrs x0, VDISR_EL3 | ||
// CHECK: mrs x0, VDISR_EL3 // encoding: [0x20,0xc1,0x3e,0xd5] | ||
|
||
msr VDISR_EL3, x0 | ||
// CHECK: msr VDISR_EL3, x0 // encoding: [0x20,0xc1,0x1e,0xd5] | ||
|
||
mrs x0, VSESR_EL3 | ||
// CHECK: mrs x0, VSESR_EL3 // encoding: [0x60,0x52,0x3e,0xd5] | ||
|
||
msr VSESR_EL3, x0 | ||
// CHECK: msr VSESR_EL3, x0 // encoding: [0x60,0x52,0x1e,0xd5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# RUN: llvm-mc -triple aarch64 -disassemble < %s | FileCheck %s | ||
|
||
[0x20,0xc1,0x3e,0xd5] | ||
# CHECK: mrs x0, VDISR_EL3 | ||
|
||
[0x20,0xc1,0x1e,0xd5] | ||
# CHECK: msr VDISR_EL3, x0 | ||
|
||
[0x60,0x52,0x3e,0xd5] | ||
# CHECK: mrs x0, VSESR_EL3 | ||
|
||
[0x60,0x52,0x1e,0xd5] | ||
# CHECK: msr VSESR_EL3, x0 |