about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-02 15:49:33 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-02 15:49:33 +0100
commit8b56536bb1e38cfa83346544ec62e2e2003dd071 (patch)
treee278aaee0412cd8c3464f0d3caa0d7963eccf1eb /src/main.c
parentda3311fe108982773cdf8ea36924da4e90d60cc4 (diff)
downloadbox64-8b56536bb1e38cfa83346544ec62e2e2003dd071.tar.gz
box64-8b56536bb1e38cfa83346544ec62e2e2003dd071.zip
More preparation on main x64emu_t structure
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3dc3a829..7ed01e90 100755
--- a/src/main.c
+++ b/src/main.c
@@ -827,6 +827,12 @@ int main(int argc, const char **argv, const char **env) {
     SetRAX(emu, my_context->argc);
     SetRBX(emu, (uintptr_t)my_context->argv);
 
+    // child fork to handle traces
+    pthread_atfork(NULL, NULL, my_child_fork);
+
+    thread_set_emu(emu);
+
+    setupTraceInit(my_context);
 
     return 0;
 }