aboutsummaryrefslogtreecommitdiff
path: root/include/hw/riscv/spike.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/riscv/spike.h')
-rw-r--r--include/hw/riscv/spike.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/riscv/spike.h b/include/hw/riscv/spike.h
index 121396d07a..cddeca2e77 100644
--- a/include/hw/riscv/spike.h
+++ b/include/hw/riscv/spike.h
@@ -28,8 +28,8 @@
#define TYPE_SPIKE_MACHINE MACHINE_TYPE_NAME("spike")
typedef struct SpikeState SpikeState;
-#define SPIKE_MACHINE(obj) \
- OBJECT_CHECK(SpikeState, (obj), TYPE_SPIKE_MACHINE)
+DECLARE_INSTANCE_CHECKER(SpikeState, SPIKE_MACHINE,
+ TYPE_SPIKE_MACHINE)
struct SpikeState {
/*< private >*/