Skip to content

Commit 5f02264

Browse files
likey99berkus
authored andcommitted
Update hcr_el2.rs add TSC
1 parent 7c817f5 commit 5f02264

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/registers/hcr_el2.rs

+9
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ register_bitfields! {u64,
142142
DisableTrapGeneralExceptionsToEl2 = 0,
143143
EnableTrapGeneralExceptionsToEl2 = 1,
144144
],
145+
146+
///Traps SMC instruction. The values are:
147+
/// 0 SMC instruction is not trapped.
148+
/// 1 SMC instruction executed in EL1 is trapped to EL2 for AArch32 and AArch64 states.
149+
///
150+
TSC OFFSET(19) NUMBITS(1) [
151+
DisableTrapSmcToEl2 = 0,
152+
EnableTrapSmcToEl2 = 1,
153+
],
145154

146155
/// Trap data or unified cache maintenance instructions that operate by Set/Way.
147156
/// Traps execution of those cache maintenance instructions at EL1 to EL2, when

0 commit comments

Comments
 (0)