Revision 8cf71710 vl.c
b/vl.c | ||
---|---|---|
1217 | 1217 |
static int reset_requested; |
1218 | 1218 |
static int shutdown_requested; |
1219 | 1219 |
static int powerdown_requested; |
1220 |
int debug_requested; |
|
1221 |
int vmstop_requested; |
|
1220 |
static int debug_requested;
|
|
1221 |
static int vmstop_requested;
|
|
1222 | 1222 |
|
1223 | 1223 |
int qemu_shutdown_requested(void) |
1224 | 1224 |
{ |
... | ... | |
1312 | 1312 |
qemu_notify_event(); |
1313 | 1313 |
} |
1314 | 1314 |
|
1315 |
void qemu_system_debug_request(void) |
|
1316 |
{ |
|
1317 |
debug_requested = 1; |
|
1318 |
vm_stop(VMSTOP_DEBUG); |
|
1319 |
} |
|
1320 |
|
|
1321 |
void qemu_system_vmstop_request(int reason) |
|
1322 |
{ |
|
1323 |
vmstop_requested = reason; |
|
1324 |
qemu_notify_event(); |
|
1325 |
} |
|
1326 |
|
|
1315 | 1327 |
void main_loop_wait(int nonblocking) |
1316 | 1328 |
{ |
1317 | 1329 |
IOHandlerRecord *ioh; |
... | ... | |
1427 | 1439 |
dev_time += profile_getclock() - ti; |
1428 | 1440 |
#endif |
1429 | 1441 |
|
1430 |
if ((r = qemu_debug_requested())) {
|
|
1431 |
vm_stop(r);
|
|
1442 |
if (qemu_debug_requested()) {
|
|
1443 |
vm_stop(VMSTOP_DEBUG);
|
|
1432 | 1444 |
} |
1433 | 1445 |
if (qemu_shutdown_requested()) { |
1434 | 1446 |
monitor_protocol_event(QEVENT_SHUTDOWN, NULL); |
Also available in: Unified diff