diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2012-12-05 14:49:09 -0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-08 21:03:43 +0100 |
commit | 906709a151344805df4ff493a7d3a81fbce46fbe (patch) | |
tree | 5152b54b4a34d89e3d9d231f9e31311e509bc324 /stubs/sysbus.c | |
parent | 083a5f8731bb3c7e0eae99dcdb1209027d770aaf (diff) | |
download | qemu-906709a151344805df4ff493a7d3a81fbce46fbe.zip |
libqemustub: sysbus_get_default() stub
The stub will be used on cases where sysbus.c is not compiled in (e.g.
*-user).
Note that code that uses NULL as the bus with qdev{_try,}_create()
implicitly uses sysbus_get_default() as the bus, and will still require
sysbus.c to be compiled in.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'stubs/sysbus.c')
-rw-r--r-- | stubs/sysbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stubs/sysbus.c b/stubs/sysbus.c new file mode 100644 index 0000000000..e13496582b --- /dev/null +++ b/stubs/sysbus.c @@ -0,0 +1,6 @@ +#include "hw/qdev-core.h" + +BusState *sysbus_get_default(void) +{ + return NULL; +} |