aboutsummaryrefslogtreecommitdiff
path: root/include/hw/misc/sifive_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/misc/sifive_test.h')
-rw-r--r--include/hw/misc/sifive_test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/misc/sifive_test.h b/include/hw/misc/sifive_test.h
index dc54b7af0c..88a38d00c5 100644
--- a/include/hw/misc/sifive_test.h
+++ b/include/hw/misc/sifive_test.h
@@ -25,8 +25,8 @@
#define TYPE_SIFIVE_TEST "riscv.sifive.test"
typedef struct SiFiveTestState SiFiveTestState;
-#define SIFIVE_TEST(obj) \
- OBJECT_CHECK(SiFiveTestState, (obj), TYPE_SIFIVE_TEST)
+DECLARE_INSTANCE_CHECKER(SiFiveTestState, SIFIVE_TEST,
+ TYPE_SIFIVE_TEST)
struct SiFiveTestState {
/*< private >*/