Writes are supported so the MMU can maintain A/D bits in PTEs.
(&mut self, addr: u64, value: u8)
| 60 | // Writes are supported so the MMU can maintain A/D bits in PTEs. |
| 61 | fn write_byte(&mut self, addr: u64, value: u8) -> Result<(), VmError> { |
| 62 | self.data.insert(addr, value); |
| 63 | Ok(()) |
| 64 | } |
| 65 | |
| 66 | fn write_halfword(&mut self, addr: u64, value: u16) -> Result<(), VmError> { |
| 67 | self.write_byte(addr, value as u8)?; |
| 68 | self.write_byte(addr + 1, (value >> 8) as u8)?; |
no test coverage detected