File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ void qemu_system_shutdown_request(ShutdownCause reason);
95
95
void qemu_system_powerdown_request (void );
96
96
void qemu_register_powerdown_notifier (Notifier * notifier );
97
97
void qemu_register_shutdown_notifier (Notifier * notifier );
98
- void qemu_system_return_request (void );
99
98
void qemu_system_debug_request (void );
100
99
void qemu_system_vmstop_request (RunState reason );
101
100
void qemu_system_vmstop_request_prepare (void );
@@ -109,5 +108,11 @@ void qemu_system_guest_crashloaded(GuestPanicInformation *info);
109
108
void qemu_system_guest_pvshutdown (void );
110
109
bool qemu_system_dump_in_progress (void );
111
110
111
+ //// --- Begin LibAFL code ---
112
+ #ifdef AS_LIB
113
+ void qemu_system_return_request (void );
114
+ #endif
115
+ //// --- End LibAFL code ---
116
+
112
117
#endif
113
118
Original file line number Diff line number Diff line change @@ -503,12 +503,16 @@ static int qemu_powerdown_requested(void)
503
503
return r ;
504
504
}
505
505
506
+ //// --- Begin LibAFL code ---
507
+ #ifdef AS_LIB
506
508
static int qemu_return_requested (void )
507
509
{
508
510
int r = return_requested ;
509
511
return_requested = 0 ;
510
512
return r ;
511
513
}
514
+ #endif
515
+ //// --- End LibAFL code ---
512
516
513
517
static int qemu_debug_requested (void )
514
518
{
@@ -807,11 +811,15 @@ void qemu_register_shutdown_notifier(Notifier *notifier)
807
811
notifier_list_add (& shutdown_notifiers , notifier );
808
812
}
809
813
814
+ //// --- Begin LibAFL code ---
815
+ #ifdef AS_LIB
810
816
void qemu_system_return_request (void )
811
817
{
812
818
return_requested = 1 ;
813
819
qemu_notify_event ();
814
820
}
821
+ #endif
822
+ //// --- End LibAFL code ---
815
823
816
824
void qemu_system_debug_request (void )
817
825
{
You can’t perform that action at this time.
0 commit comments