qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

authored by

Philippe Mathieu-Daudé and committed by
Eduardo Habkost
64bc77eb e0175b71

+1 -1
+1 -1
include/hw/nmi.h
··· 31 31 #define NMI_GET_CLASS(obj) \ 32 32 OBJECT_GET_CLASS(NMIClass, (obj), TYPE_NMI) 33 33 #define NMI(obj) \ 34 - INTERFACE_CHECK(NMI, (obj), TYPE_NMI) 34 + INTERFACE_CHECK(NMIState, (obj), TYPE_NMI) 35 35 36 36 typedef struct NMIState NMIState; 37 37