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:
Andreas Kling 2020-07-11 17:18:07 +02:00
commit 0f63d8c9b4
Notes: sideshowbarker 2024-07-19 04:57:08 +09:00
3 changed files with 31 additions and 10 deletions

View file

@ -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;