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:
Ali Mohammad Pur 2022-02-27 23:59:40 +03:30 committed by Andreas Kling
commit baf7038919
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00
3 changed files with 47 additions and 12 deletions

View file

@ -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();
}
}