Skip to content

Commit

Permalink
Update hcr_el2.rs add TSC
Browse files Browse the repository at this point in the history
  • Loading branch information
likey99 authored and berkus committed Nov 8, 2024
1 parent 7c817f5 commit 5f02264
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/registers/hcr_el2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ register_bitfields! {u64,
DisableTrapGeneralExceptionsToEl2 = 0,
EnableTrapGeneralExceptionsToEl2 = 1,
],

///Traps SMC instruction. The values are:
/// 0 SMC instruction is not trapped.
/// 1 SMC instruction executed in EL1 is trapped to EL2 for AArch32 and AArch64 states.
///
TSC OFFSET(19) NUMBITS(1) [
DisableTrapSmcToEl2 = 0,
EnableTrapSmcToEl2 = 1,
],

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

0 comments on commit 5f02264

Please sign in to comment.