aarch32_cpu/register/bpiall.rs
1//! Code for managing BPIALL (*Branch Predictor Invalidate All*)
2
3use crate::register::SysReg;
4
5/// BPIALL (*Branch Predictor Invalidate All*)
6pub struct BpIAll;
7
8impl SysReg for BpIAll {
9 const CP: u32 = 15;
10 const CRN: u32 = 7;
11 const OP1: u32 = 0;
12 const CRM: u32 = 5;
13 const OP2: u32 = 6;
14}
15
16impl crate::register::SysRegWrite for BpIAll {}
17
18impl BpIAll {
19 #[inline]
20 /// Writes 0 to BPIALL (*Branch Predictor Invalidate All*) to trigger operation
21 pub fn write() {
22 unsafe { <Self as crate::register::SysRegWrite>::write_raw(0) }
23 }
24}