- Synopsis
-
Capability get type
- Mnemonic
-
gctype rd, cs1
- Encoding
- Description
-
Decode the architectural capability type from
cs1
and write the result tord
. It is not required that the input capabilitycs1
has its tag set to 1.
Note
|
While the architectural capability type maps directly to the value of the CT capability bit in {cheri_base_ext_name}, future extensions may define an alternate mapping.
Therefore, software should always use GCTYPE to obtain the capability type rather than directly reading the high bits of the capability using [GCHI].
|
Type | Hardware interpretation |
---|---|
0 |
Unsealed capability |
1 |
- Exceptions
- Prerequisites
-
{cheri_base_ext_name}
- Operation
-
sail::execute[clause="GCTYPE(_, _)",part=body,unindent]