From a8639ee531d92599aa62dd3f17c41565f2699060 Mon Sep 17 00:00:00 2001 From: Tang Haojin Date: Wed, 1 Jan 2025 19:45:42 +0800 Subject: [PATCH] fix(difftest): include `difftest-def.h` in spike (#81) Previously, we only include `diffteset-def.h` in difftest-related files, which causes various inconsistencies in class or struct definitions. --- difftest/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/difftest/Makefile b/difftest/Makefile index 24a91aeafa..6ffc283c6c 100644 --- a/difftest/Makefile +++ b/difftest/Makefile @@ -10,8 +10,8 @@ SPIKE_PATH = $(abspath ..) SPIKE_TARGET = $(BUILD_DIR)/spike SPIKE_MAKEFILE = $(BUILD_DIR)/Makefile -SPIKE_CFLAGS = -O3 -DDIFFTEST -SPIKE_CXXFLAGS = -O3 -DDIFFTEST -Wno-c99-designator +SPIKE_CFLAGS = -O3 -DDIFFTEST -include $(abspath .)/difftest-def.h +SPIKE_CXXFLAGS = -O3 -DDIFFTEST -include $(abspath .)/difftest-def.h -Wno-c99-designator SPIKE_LDFLAGS = ifneq ($(CPU),)