mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
UserspaceEmulator: Pass arguments through to emulated process
Ultimately we'll want to support passing some options to the emulator as well, but for now just pass all arguments (except argv[0] of course) through to the emulated process. This is still not perfect, but slightly better than what we had before.
This commit is contained in:
parent
3d42b85969
commit
27c1690504
3 changed files with 28 additions and 18 deletions
|
@ -37,7 +37,7 @@ namespace UserspaceEmulator {
|
|||
|
||||
class Emulator {
|
||||
public:
|
||||
Emulator(const String& executable_path, NonnullRefPtr<ELF::Loader>);
|
||||
Emulator(const Vector<String>& arguments, NonnullRefPtr<ELF::Loader>);
|
||||
|
||||
bool load_elf();
|
||||
void dump_backtrace();
|
||||
|
@ -53,7 +53,7 @@ private:
|
|||
SoftMMU m_mmu;
|
||||
SoftCPU m_cpu;
|
||||
|
||||
void setup_stack();
|
||||
void setup_stack(const Vector<String>& arguments);
|
||||
|
||||
u32 virt$mmap(u32);
|
||||
u32 virt$gettid();
|
||||
|
@ -77,8 +77,6 @@ private:
|
|||
|
||||
bool m_shutdown { false };
|
||||
int m_exit_status { 0 };
|
||||
|
||||
String m_executable_path;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue