(
&mut self,
cpu: &mut Cpu,
code: &BlockTable,
block: usize,
)
| 75 | } |
| 76 | |
| 77 | fn compute_load_usage( |
| 78 | &mut self, |
| 79 | cpu: &mut Cpu, |
| 80 | code: &BlockTable, |
| 81 | block: usize, |
| 82 | ) -> Result<(), Error> { |
| 83 | self.state.reset(); |
| 84 | if let Some(lifter) = self.lifter.as_mut() { |
| 85 | lifter.code.flush_code(); |
| 86 | } |
| 87 | |
| 88 | let current_block = &code.blocks[block]; |
| 89 | self.state.block = current_block.pcode.first_addr().unwrap_or(0); |
| 90 | self.state.find_loads_and_uses(current_block, true); |
| 91 | self.calculate_used_bits(cpu, code, current_block) |
| 92 | } |
| 93 | |
| 94 | pub fn get_loads( |
| 95 | &mut self, |
no test coverage detected