|
@@ -523,6 +523,11 @@ CPU_LE( movk x0, #0x30d0, lsl #16 ) // Clear EE and E0E on LE systems
|
|
msr hstr_el2, xzr // Disable CP15 traps to EL2
|
|
msr hstr_el2, xzr // Disable CP15 traps to EL2
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+ /* EL2 debug */
|
|
|
|
+ mrs x0, pmcr_el0 // Disable debug access traps
|
|
|
|
+ ubfx x0, x0, #11, #5 // to EL2 and allow access to
|
|
|
|
+ msr mdcr_el2, x0 // all PMU counters from EL1
|
|
|
|
+
|
|
/* Stage-2 translation */
|
|
/* Stage-2 translation */
|
|
msr vttbr_el2, xzr
|
|
msr vttbr_el2, xzr
|
|
|
|
|