mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:57:34 +00:00
UserspaceEmulator: Symbolicate disassembly output :^)
Since we have the ELF executable handy, we can actually symbolicate the disassembly trace output really easily. Very cool! :^)
This commit is contained in:
parent
dc66d70369
commit
0f63d8c9b4
3 changed files with 31 additions and 10 deletions
|
@ -37,9 +37,9 @@ namespace UserspaceEmulator {
|
|||
|
||||
class Emulator {
|
||||
public:
|
||||
Emulator();
|
||||
explicit Emulator(NonnullRefPtr<ELF::Loader>);
|
||||
|
||||
bool load_elf(const ELF::Loader&);
|
||||
bool load_elf();
|
||||
|
||||
int exec();
|
||||
u32 virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3);
|
||||
|
@ -47,6 +47,8 @@ public:
|
|||
SoftMMU& mmu() { return m_mmu; }
|
||||
|
||||
private:
|
||||
NonnullRefPtr<ELF::Loader> m_elf;
|
||||
|
||||
SoftMMU m_mmu;
|
||||
SoftCPU m_cpu;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue