mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
b2b6f6ec39
commit
d9c3231019
5 changed files with 23 additions and 34 deletions
9
sysemu.h
9
sysemu.h
|
@ -47,14 +47,7 @@ void qemu_system_powerdown_request(void);
|
|||
int qemu_shutdown_requested(void);
|
||||
int qemu_reset_requested(void);
|
||||
int qemu_powerdown_requested(void);
|
||||
#ifdef NEED_CPU_H
|
||||
#if !defined(TARGET_SPARC) && !defined(TARGET_I386)
|
||||
// Please implement a power failure function to signal the OS
|
||||
#define qemu_system_powerdown() do{}while(0)
|
||||
#else
|
||||
void qemu_system_powerdown(void);
|
||||
#endif
|
||||
#endif
|
||||
extern qemu_irq qemu_system_powerdown;
|
||||
void qemu_system_reset(void);
|
||||
|
||||
void do_savevm(Monitor *mon, const char *name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue