File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 4141#include <CoreFoundation/CoreFoundation.h>
4242#endif
4343
44- static void * qemu_default_main (void * opaque )
45- {
46- int status ;
47-
48- replay_mutex_lock ();
49- bql_lock ();
50- status = qemu_main_loop ();
51- qemu_cleanup (status );
52- bql_unlock ();
53- replay_mutex_unlock ();
54-
55- exit (status );
56- }
57-
5844int (* qemu_main )(void );
5945
6046#ifdef CONFIG_DARWIN
@@ -69,6 +55,21 @@ int (*qemu_main)(void) = os_darwin_cfrunloop_main;
6955//// --- Begin LibAFL code ---
7056#ifndef AS_LIB
7157//// --- End LibAFL code ---
58+
59+ static void * qemu_default_main (void * opaque )
60+ {
61+ int status ;
62+
63+ replay_mutex_lock ();
64+ bql_lock ();
65+ status = qemu_main_loop ();
66+ qemu_cleanup (status );
67+ bql_unlock ();
68+ replay_mutex_unlock ();
69+
70+ exit (status );
71+ }
72+
7273int main (int argc , char * * argv )
7374{
7475 qemu_init (argc , argv );
@@ -84,6 +85,7 @@ int main(int argc, char **argv)
8485 g_assert_not_reached ();
8586 }
8687}
88+
8789//// --- Begin LibAFL code ---
8890#endif
8991//// --- End LibAFL code ---
You can’t perform that action at this time.
0 commit comments