Enum hazardflow_designs::cpu::branch_predictor::BpUpdate
source · pub enum BpUpdate {
Bht {
pc: u32,
taken: bool,
},
Btb {
pc: u32,
target: u32,
},
}
Expand description
Branch prediction update.
Variants§
Bht
Updates BHT.
It contains the branch instruction PC and the direction.
Btb
Updates BTB.
It contains the mispredicted PC and the correct target address.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BpUpdate
impl Send for BpUpdate
impl Sync for BpUpdate
impl Unpin for BpUpdate
impl UnwindSafe for BpUpdate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more