hw/nmi: Fix the NMI() macro, based on INTERFACE_CHECK()
commit64bc77eb2c0809f11860cfe53d47e9c6f77e85f3
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 7 Dec 2019 09:48:23 +0000 (7 10:48 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 28 Feb 2020 19:57:19 +0000 (28 14:57 -0500)
treea0a00203a50b33588bb138bcde1ea0a0cb37c264
parente0175b71638cf4398903c0d25f93fe62e0606389
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>
include/hw/nmi.h