| 31 | } |
| 32 | |
| 33 | pub struct LoadResizeInjector { |
| 34 | resizer: LoadResizer, |
| 35 | |
| 36 | /// Controls whether a zero-extend and shift operation is injected when only the upper bits of |
| 37 | /// an load are used. |
| 38 | optimize_upper_bits: bool, |
| 39 | |
| 40 | /// A reference to the MMIO memory handler. |
| 41 | mmio_ref: IoHandler, |
| 42 | } |
| 43 | |
| 44 | impl LoadResizeInjector { |
| 45 | pub fn new(mmio_ref: IoHandler, multiblock: bool, optimize_upper_bits: bool) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected