hw/nmi: Fix the NMI() macro, based on INTERFACE_CHECK()
There is no declaration of the 'NMI' type. INTERFACE_CHECK() returns an abstract type (see commitaa1b35b975
). The abstract type corresponding to the TYPE_NMI interface is 'NMIState'. Fixes:9cb805fd26
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191207094823.20707-1-philmd@redhat.com> Reviewed-by: Gavin Shan <gshan@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
e0175b7163
commit
64bc77eb2c
@ -31,7 +31,7 @@
|
||||
#define NMI_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(NMIClass, (obj), TYPE_NMI)
|
||||
#define NMI(obj) \
|
||||
INTERFACE_CHECK(NMI, (obj), TYPE_NMI)
|
||||
INTERFACE_CHECK(NMIState, (obj), TYPE_NMI)
|
||||
|
||||
typedef struct NMIState NMIState;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user