diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-05 17:31:50 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-05 17:31:50 +0200 |
| commit | ace8536987e905081609d1d77f044954b57208bf (patch) | |
| tree | 5d5dce927703fcb5ef6d7791005aae629bd15d07 /src | |
| parent | 3370ae4dcfb9cc1b620f003fe7743318216cd96c (diff) | |
| download | box64-ace8536987e905081609d1d77f044954b57208bf.tar.gz box64-ace8536987e905081609d1d77f044954b57208bf.zip | |
And another change change to __libc_start_main for non-Dynarec build
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64run_private.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index 51c9f0d7..06beb524 100755 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -52,9 +52,9 @@ int32_t EXPORT my___libc_start_main(x64emu_t* emu, int *(main) (int, char * *, c SetRSI(emu, (uint64_t)my_context->argv); SetRDI(emu, (uint64_t)my_context->argc); R_RIP=(uint64_t)main; -#ifdef DYNAREC + DynaRun(emu); -#endif + SetRSP(emu, GetRBP(emu)); // restore RSP SetRBP(emu, Pop64(emu)); // restore RBP emu->quit = 1; // finished! |