diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-08-20 14:54:27 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-09-19 16:38:31 +0200 |
commit | c84a8f01b2a5d8bf98c447796d4a747333a5b1fd (patch) | |
tree | 0ebd28d0e3c93340d21f326592ed7c346d424c7f /include/hw/boards.h | |
parent | 6c76b37742d4db8176af37b667b5420727e79e2c (diff) | |
download | qemu-c84a8f01b2a5d8bf98c447796d4a747333a5b1fd.zip qemu-c84a8f01b2a5d8bf98c447796d4a747333a5b1fd.tar.gz qemu-c84a8f01b2a5d8bf98c447796d4a747333a5b1fd.tar.bz2 |
machine: MACHINE_TYPE_NAME macro
The macro will be useful to ensure the machine class names follow the
right format to make machine class lookup by class name work correctly.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/boards.h')
-rw-r--r-- | include/hw/boards.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h index 566a5ca..586f939 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -40,6 +40,12 @@ void memory_region_allocate_system_memory(MemoryRegion *mr, Object *owner, int qemu_register_machine(QEMUMachine *m); #define TYPE_MACHINE_SUFFIX "-machine" + +/* Machine class name that needs to be used for class-name-based machine + * type lookup to work. + */ +#define MACHINE_TYPE_NAME(machinename) (machinename TYPE_MACHINE_SUFFIX) + #define TYPE_MACHINE "machine" #undef MACHINE /* BSD defines it and QEMU does not use it */ #define MACHINE(obj) \ |