mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
UserspaceEmulator: Add a SoftMMU::read<T> function
...and implement SoftCPU::read_memory<T> with it. This allows the MMU to read a typed object (using 1-byte reads), which is significantly nicer to use than reading the struct fields manually.
This commit is contained in:
parent
70b53b44b2
commit
baf7038919
3 changed files with 47 additions and 12 deletions
|
@ -376,4 +376,9 @@ bool SoftMMU::fast_fill_memory32(X86::LogicalAddress address, size_t count, Valu
|
|||
return true;
|
||||
}
|
||||
|
||||
void SoftMMU::dump_backtrace()
|
||||
{
|
||||
m_emulator.dump_backtrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue