1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
use tock_registers::{interfaces::Readable, register_bitfields};
register_bitfields! {u64,
pub ESR_EL2 [
RES0 OFFSET(37) NUMBITS(27) [],
ISS2 OFFSET(32) NUMBITS(5) [],
EC OFFSET(26) NUMBITS(6) [
Unknown = 0b00_0000,
TrappedWFIorWFE = 0b00_0001,
TrappedMCRorMRC = 0b00_0011,
TrappedMCRRorMRRC = 0b00_0100,
TrappedMCRorMRC2 = 0b00_0101,
TrappedLDCorSTC = 0b00_0110,
TrappedFP = 0b00_0111,
TrappedMRRC = 0b00_1100,
BranchTarget = 0b00_1101,
IllegalExecutionState = 0b00_1110,
SVC32 = 0b01_0001,
SVC64 = 0b01_0101,
HVC64 = 0b01_0110,
SMC64 = 0b01_0111,
TrappedMsrMrs = 0b01_1000,
TrappedSve = 0b01_1001,
PointerAuth = 0b01_1100,
InstrAbortLowerEL = 0b10_0000,
InstrAbortCurrentEL = 0b10_0001,
PCAlignmentFault = 0b10_0010,
DataAbortLowerEL = 0b10_0100,
DataAbortCurrentEL = 0b10_0101,
SPAlignmentFault = 0b10_0110,
TrappedFP32 = 0b10_1000,
TrappedFP64 = 0b10_1100,
SError = 0b10_1111,
BreakpointLowerEL = 0b11_0000,
BreakpointCurrentEL = 0b11_0001,
SoftwareStepLowerEL = 0b11_0010,
SoftwareStepCurrentEL = 0b11_0011,
WatchpointLowerEL = 0b11_0100,
WatchpointCurrentEL = 0b11_0101,
Bkpt32 = 0b11_1000,
Brk64 = 0b11_1100
],
IL OFFSET(25) NUMBITS(1) [],
ISS OFFSET(0) NUMBITS(25) []
]
}
pub struct Reg;
impl Readable for Reg {
type T = u64;
type R = ESR_EL2::Register;
sys_coproc_read_raw!(u64, "ESR_EL2", "x");
}
pub const ESR_EL2: Reg = Reg {};