mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw: move reset handlers from vl.c to hw/core
They are small, it is not worth stubbing them. Just include them in user-mode emulators and unit tests as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
671ab4368a
commit
2f7b92a03f
9 changed files with 85 additions and 64 deletions
10
include/sysemu/reset.h
Normal file
10
include/sysemu/reset.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef QEMU_SYSEMU_RESET_H
|
||||
#define QEMU_SYSEMU_RESET_H
|
||||
|
||||
typedef void QEMUResetHandler(void *opaque);
|
||||
|
||||
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
||||
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
||||
void qemu_devices_reset(void);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue