(&self)
| 75 | } |
| 76 | |
| 77 | /// Clear PHT and BTB, preserving stats. Called on an address-space change so |
| 78 | /// another process's entries at the same virtual PCs cannot mispredict. |
| 79 | pub fn clear(&mut self) { |
| 80 | self.pht = [1u8; PHT_SIZE]; |
| 81 | self.btb.clear(); |
| 82 | } |