summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2019-12-07 10:48:23 +0100
committerEduardo Habkost2020-02-28 20:57:19 +0100
commit64bc77eb2c0809f11860cfe53d47e9c6f77e85f3 (patch)
treea0a00203a50b33588bb138bcde1ea0a0cb37c264 /include/hw
parentMerge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200228'... (diff)
downloadqemu-64bc77eb2c0809f11860cfe53d47e9c6f77e85f3.tar.gz
qemu-64bc77eb2c0809f11860cfe53d47e9c6f77e85f3.tar.xz
qemu-64bc77eb2c0809f11860cfe53d47e9c6f77e85f3.zip
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 commit aa1b35b975d8). The abstract type corresponding to the TYPE_NMI interface is 'NMIState'. Fixes: 9cb805fd267 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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/nmi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/nmi.h b/include/hw/nmi.h
index a1e128724e..fe37ce3ad8 100644
--- a/include/hw/nmi.h
+++ b/include/hw/nmi.h
@@ -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;