VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/Makefile.kmk@ 96797

Last change on this file since 96797 was 96797, checked in by vboxsync, 2 years ago

VMM/testcase/tstIEMAImpl: Implement basic cvtdq2ps/cvtps2dq/cvttps2dq/cvttpd2dq/cvtdq2pd/cvtpd2dq testcases, bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.7 KB
Line 
1# $Id: Makefile.kmk 96797 2022-09-19 19:10:20Z vboxsync $
2## @file
3# Sub-Makefile for the VMM testcases.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Include sub-makefiles.
33#
34if 0 # Not ready for general consumption yet.
35 include $(PATH_SUB_CURRENT)/Instructions/Makefile.kmk
36endif
37
38#
39# Target lists.
40#
41PROGRAMS += tstVMStructSize tstAsmStructs
42ifdef VBOX_WITH_RAW_MODE
43 PROGRAMS += tstVMStructRC tstAsmStructsRC
44endif
45if !defined(VBOX_ONLY_EXTPACKS) \
46 && ( defined(VBOX_WITH_DTRACE_R3) \
47 || defined(VBOX_WITH_DTRACE_R0) \
48 || defined(VBOX_WITH_DTRACE_RC))
49PROGRAMS += tstVMStructDTrace
50INSTALLS += VMMLibDTraceStructTest
51endif
52ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
53 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
54PROGRAMS += tstGlobalConfigHardened
55DLL += tstGlobalConfig
56 else
57PROGRAMS += tstGlobalConfig
58 endif
59
60 ifdef VBOX_WITH_RAW_MODE
61 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
62PROGRAMS += tstVMMHardened
63DLLS += tstVMM
64 else
65PROGRAMS += tstVMM tstVMM-HM
66 endif
67 ifneq ($(KBUILD_TARGET),win)
68PROGRAMS += tstVMMFork
69 endif
70 endif
71 ifdef VBOX_WITH_TESTCASES
72 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
73PROGRAMS += tstCFGMHardened tstVMREQHardened tstAnimateHardened
74DLLS += tstCFGM tstVMREQ tstAnimate
75 else
76PROGRAMS += tstCFGM tstVMREQ tstAnimate
77 endif
78PROGRAMS += \
79 tstCompressionBenchmark \
80 tstIEMCheckMc \
81 tstIEMAImpl \
82 tstPDMQueue \
83 tstSSM
84PROGRAMS.amd64 += tstIEMAImplAsm
85
86 if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
87PROGRAMS += \
88 tstVMMR0CallHost-1 \
89 tstX86-FpuSaveRestore
90 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), solaris.x86 solaris.amd64 win.amd64 ) ## TODO: Fix the code.
91PROGRAMS += tstX86-1
92 endif
93 endif
94 ifdef VBOX_WITH_RAW_MODE
95 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
96PROGRAMS += tstMicroHardened
97DLLS += tstMicro
98 else
99PROGRAMS += tstMicro
100 endif
101SYSMODS += tstMicroRC
102 endif
103 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
104 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
105PROGRAMS += tstPDMAsyncCompletionHardened tstPDMAsyncCompletionStressHardened
106DLLS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress
107 else
108PROGRAMS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress
109 endif
110 endif
111 endif # VBOX_WITH_TESTCASES
112endif # !VBOX_ONLY_EXTPACKS_USE_IMPLIBS
113
114# Where we put our temporary files (just for simplicity)
115VBOX_VMM_TESTCASE_OUT_DIR := $(PATH_TARGET)/VMM
116BLDDIRS += $(VBOX_VMM_TESTCASE_OUT_DIR)
117
118#
119# We setup two 'other' targets for executing the two structure & alignment
120# validation testcases. Perhaps a bit hackish, but extremely useful.
121#
122ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
123 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
124OTHERS += \
125 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
126 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
127 endif
128endif
129
130# The normal testing pass.
131TESTING += \
132 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
133 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
134
135OTHER_CLEAN += \
136 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
137 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run \
138 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o \
139 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep \
140 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
141 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.o \
142 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.lst \
143 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h \
144 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h \
145 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h
146
147#
148# Globals
149#
150VBOX_PATH_VMM_SRC = $(PATH_ROOT)/src/VBox/VMM
151
152#
153# Targets
154#
155ifdef VBOX_WITH_RAW_MODE
156tstVMStructRC_TEMPLATE = VBoxRcExe
157tstVMStructRC_DEFS = VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
158 ifdef VBOX_WITH_R0_LOGGING
159tstVMStructRC_DEFS += VBOX_WITH_R0_LOGGING
160 endif
161tstVMStructRC_SOURCES = tstVMStructRC.cpp
162tstVMStructRC_INCS = \
163 $(VBOX_PATH_VMM_SRC)/include \
164 $(VBOX_PATH_VMM_SRC)/PATM
165endif
166
167tstVMStructSize_TEMPLATE= VBOXR3AUTOTST
168ifneq ($(KBUILD_TARGET),win)
169tstVMStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)
170endif
171tstVMStructSize_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)
172ifdef VBOX_WITH_RAW_MODE
173tstVMStructSize_DEFS += VBOX_WITH_RAW_MODE
174endif
175tstVMStructSize_INCS = \
176 $(VBOX_PATH_VMM_SRC)/include \
177 $(VBOX_PATH_VMM_SRC)/PATM \
178 $(VBOX_VMM_TESTCASE_OUT_DIR)
179tstVMStructSize_SOURCES = tstVMStructSize.cpp
180ifdef VBOX_WITH_RAW_MODE
181tstVMStructSize.cpp_DEPS= $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h
182endif
183ifdef VBOX_WITH_R0_LOGGING
184tstVMStructSize_DEFS += VBOX_WITH_R0_LOGGING
185endif
186
187tstAsmStructs_TEMPLATE = VBOXR3AUTOTST
188ifneq ($(KBUILD_TARGET),win)
189tstAsmStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)
190endif
191tstAsmStructs_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)
192ifdef VBOX_WITH_RAW_MODE
193tstAsmStructs_DEFS += VBOX_WITH_RAW_MODE
194endif
195ifdef VBOX_WITH_R0_LOGGING
196tstAsmStructs_DEFS += VBOX_WITH_R0_LOGGING
197endif
198tstAsmStructs_INCS = \
199 $(VBOX_PATH_VMM_SRC)/include \
200 $(VBOX_VMM_TESTCASE_OUT_DIR)
201tstAsmStructs_SOURCES = tstAsmStructs.cpp
202tstAsmStructs.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h
203
204ifdef VBOX_WITH_RAW_MODE
205tstAsmStructsRC_TEMPLATE= VBoxRcExe
206tstAsmStructsRC_DEFS = VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
207 ifdef VBOX_WITH_R0_LOGGING
208tstAsmStructsRC_DEFS += VBOX_WITH_R0_LOGGING
209 endif
210tstAsmStructsRC_INCS = \
211 $(VBOX_PATH_VMM_SRC)/include \
212 $(VBOX_VMM_TESTCASE_OUT_DIR)
213tstAsmStructsRC_SOURCES = tstAsmStructs.cpp
214tstAsmStructs.cpp_DEPS += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h
215endif # VBOX_WITH_RAW_MODE
216
217
218#
219# Global config tool.
220#
221if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
222tstGlobalConfigHardened_TEMPLATE = VBoxR3HardenedTstExe
223tstGlobalConfigHardened_NAME = tstGlobalConfig
224 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
225tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR="tstGlobalConfig"
226 else
227tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR=\"tstGlobalConfig\"
228 endif
229tstGlobalConfigHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
230tstGlobalConfig_TEMPLATE = VBoxR3HardenedTstDll
231else
232tstGlobalConfig_TEMPLATE = VBOXR3TSTEXE
233endif
234tstGlobalConfig_SOURCES = tstGlobalConfig.cpp
235tstGlobalConfig_LIBS = $(LIB_RUNTIME)
236
237
238#
239# Testcase for checking the C (IEMAllAImplC.cpp) and assembly (IEMAllAImpl.asm)
240# instruction emulation helpers.
241#
242# Note! The IN_TSTVMSTRUCT define is for avoiding IEMInstructionStatisticsTmpl.h.
243#
244TSTIEMAIMPL_TEST_DATA_DEPS = \
245 tstIEMAImplDataSseBinary-addps_u128.bin \
246 tstIEMAImplDataSseBinary-mulps_u128.bin \
247 tstIEMAImplDataSseBinary-subps_u128.bin \
248 tstIEMAImplDataSseBinary-minps_u128.bin \
249 tstIEMAImplDataSseBinary-divps_u128.bin \
250 tstIEMAImplDataSseBinary-maxps_u128.bin \
251 tstIEMAImplDataSseBinary-haddps_u128.bin \
252 tstIEMAImplDataSseBinary-hsubps_u128.bin \
253 tstIEMAImplDataSseBinary-sqrtps_u128.bin \
254 tstIEMAImplDataSseBinary-addsubps_u128.bin \
255 tstIEMAImplDataSseBinary-cvtps2pd_u128.bin \
256 tstIEMAImplDataSseBinary-addpd_u128.bin \
257 tstIEMAImplDataSseBinary-mulpd_u128.bin \
258 tstIEMAImplDataSseBinary-subpd_u128.bin \
259 tstIEMAImplDataSseBinary-minpd_u128.bin \
260 tstIEMAImplDataSseBinary-divpd_u128.bin \
261 tstIEMAImplDataSseBinary-maxpd_u128.bin \
262 tstIEMAImplDataSseBinary-haddpd_u128.bin \
263 tstIEMAImplDataSseBinary-hsubpd_u128.bin \
264 tstIEMAImplDataSseBinary-sqrtpd_u128.bin \
265 tstIEMAImplDataSseBinary-addsubpd_u128.bin \
266 tstIEMAImplDataSseBinary-cvtpd2ps_u128.bin \
267 tstIEMAImplDataSseBinary-addss_u128_r32.bin \
268 tstIEMAImplDataSseBinary-addsd_u128_r64.bin \
269 tstIEMAImplDataSseBinary-mulss_u128_r32.bin \
270 tstIEMAImplDataSseBinary-mulsd_u128_r64.bin \
271 tstIEMAImplDataSseBinary-subss_u128_r32.bin \
272 tstIEMAImplDataSseBinary-subsd_u128_r64.bin \
273 tstIEMAImplDataSseBinary-minss_u128_r32.bin \
274 tstIEMAImplDataSseBinary-minsd_u128_r64.bin \
275 tstIEMAImplDataSseBinary-divss_u128_r32.bin \
276 tstIEMAImplDataSseBinary-divsd_u128_r64.bin \
277 tstIEMAImplDataSseBinary-maxss_u128_r32.bin \
278 tstIEMAImplDataSseBinary-maxsd_u128_r64.bin \
279 tstIEMAImplDataSseBinary-cvtss2sd_u128_r32.bin \
280 tstIEMAImplDataSseBinary-cvtsd2ss_u128_r64.bin \
281 tstIEMAImplDataSseBinary-sqrtss_u128_r32.bin \
282 tstIEMAImplDataSseBinary-sqrtsd_u128_r64.bin \
283 tstIEMAImplDataSseBinary-cvttsd2si_i32_r64.bin \
284 tstIEMAImplDataSseBinary-cvtsd2si_i32_r64.bin \
285 tstIEMAImplDataSseBinary-cvttsd2si_i64_r64.bin \
286 tstIEMAImplDataSseBinary-cvtsd2si_i64_r64.bin \
287 tstIEMAImplDataSseBinary-cvttss2si_i32_r32.bin \
288 tstIEMAImplDataSseBinary-cvtss2si_i32_r32.bin \
289 tstIEMAImplDataSseBinary-cvttss2si_i64_r32.bin \
290 tstIEMAImplDataSseBinary-cvtss2si_i64_r32.bin \
291 tstIEMAImplDataSseBinary-cvtsi2ss_r32_i32.bin \
292 tstIEMAImplDataSseBinary-cvtsi2ss_r32_i64.bin \
293 tstIEMAImplDataSseBinary-cvtsi2sd_r64_i32.bin \
294 tstIEMAImplDataSseBinary-cvtsi2sd_r64_i64.bin \
295 tstIEMAImplDataSseCompare-ucomiss_u128.bin \
296 tstIEMAImplDataSseCompare-vucomiss_u128.bin \
297 tstIEMAImplDataSseCompare-comiss_u128.bin \
298 tstIEMAImplDataSseCompare-vcomiss_u128.bin \
299 tstIEMAImplDataSseCompare-ucomisd_u128.bin \
300 tstIEMAImplDataSseCompare-vucomisd_u128.bin \
301 tstIEMAImplDataSseCompare-comisd_u128.bin \
302 tstIEMAImplDataSseCompare-vcomisd_u128.bin \
303 tstIEMAImplDataSseCompare-cmpps_u128.bin \
304 tstIEMAImplDataSseCompare-cmpss_u128.bin \
305 tstIEMAImplDataSseCompare-cmppd_u128.bin \
306 tstIEMAImplDataSseCompare-cmpsd_u128.bin \
307 tstIEMAImplDataSseConvert-cvtdq2ps_u128.bin \
308 tstIEMAImplDataSseConvert-cvtps2dq_u128.bin \
309 tstIEMAImplDataSseConvert-cvttps2dq_u128.bin \
310 tstIEMAImplDataSseConvert-cvtdq2pd_u128.bin \
311 tstIEMAImplDataSseConvert-cvtpd2dq_u128.bin \
312 tstIEMAImplDataSseConvert-cvttpd2dq_u128.bin
313
314tstIEMAImpl_TEMPLATE = VBOXR3TSTEXE
315tstIEMAImpl_DEFS = $(VMM_COMMON_DEFS) IEM_WITHOUT_ASSEMBLY IN_TSTVMSTRUCT
316tstIEMAImpl_SDKS = VBOX_SOFTFLOAT
317tstIEMAImpl_INCS = ../include .
318tstIEMAImpl_CLEAN = \
319 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataInt.cpp \
320 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataInt-Amd.cpp \
321 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataInt-Intel.cpp \
322 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuLdSt.cpp \
323 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuLdSt-Amd.cpp \
324 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuLdSt-Intel.cpp \
325 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuBinary1.cpp \
326 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuBinary1-Amd.cpp \
327 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuBinary1-Intel.cpp \
328 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuBinary2.cpp \
329 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuOther.cpp \
330 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuOther-Amd.cpp \
331 $(tstIEMAImpl_0_OUTDIR)/tstIEMAImplDataFpuOther-Intel.cpp
332tstIEMAImpl_SOURCES = \
333 tstIEMAImpl.cpp \
334 ../VMMAll/IEMAllAImplC.cpp \
335 $(tstIEMAImpl_CLEAN)
336tstIEMAImpl_SOURCES.x86 += tstIEMAImplDataSseBinary.asm
337tstIEMAImpl_SOURCES.amd64 += tstIEMAImplDataSseBinary.asm
338tstIEMAImplDataSseBinary.asm_DEPS = \
339 $(TSTIEMAIMPL_TEST_DATA_DEPS)
340
341tstIEMAImpl_SOURCES.arm64 += tstIEMAImplDataSseBinary.S
342tstIEMAImplDataSseBinary.S_DEPS = \
343 $(TSTIEMAIMPL_TEST_DATA_DEPS)
344$(call KB_FN_DO_PASS0_ON_TARGET,tstIEMAImpl)
345
346# This variant mainly for generating data.
347tstIEMAImplAsm_TEMPLATE = VBOXR3TSTEXE
348tstIEMAImplAsm_SDKS = VBOX_SOFTFLOAT
349tstIEMAImplAsm_DEFS = $(VMM_COMMON_DEFS) IEM_WITH_ASSEMBLY IN_TSTVMSTRUCT TSTIEMAIMPL_WITH_GENERATOR
350tstIEMAImplAsm_INCS = ../include .
351tstIEMAImplAsm_SOURCES = \
352 tstIEMAImpl.cpp \
353 ../VMMAll/IEMAllAImpl.asm \
354 ../VMMAll/IEMAllAImplC.cpp \
355 $(tstIEMAImpl_CLEAN)
356tstIEMAImplAsm_SOURCES.x86 += tstIEMAImplDataSseBinary.asm
357tstIEMAImplAsm_SOURCES.amd64 += tstIEMAImplDataSseBinary.asm
358tstIEMAImplDataSseBinary.asm_DEPS = \
359 $(TSTIEMAIMPL_TEST_DATA_DEPS)
360
361tstIEMAImplAsm_SOURCES.arm64 += tstIEMAImplDataSseBinary.S
362tstIEMAImplDataSseBinary.S_DEPS = \
363 $(TSTIEMAIMPL_TEST_DATA_DEPS)
364
365## @param 1 The sub-name of the file in question.
366define def_tstIEMAImplData_adjust
367$$(tstIEMAImpl_0_OUTDIR)/tstIEMAImplData$(1).cpp: \
368 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData$(1).cpp \
369 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData.sh \
370 $$(tstIEMAImpl_DEFPATH)/tstIEMAImpl.h \
371 | $$(tstIEMAImpl_0_OUTDIR)/
372 $$(ASH) "$$(tstIEMAImpl_DEFPATH)/tstIEMAImplData.sh" \
373 "$$(CP_EXT)" \
374 "$$(MV_EXT)" \
375 "$$(SED_EXT)" \
376 "$$(APPEND_EXT)" \
377 "$$(tstIEMAImpl_0_OUTDIR)" \
378 "$$(tstIEMAImpl_DEFPATH)" \
379 "$(1)"
380endef
381$(evalcall2 def_tstIEMAImplData_adjust,Int)
382$(evalcall2 def_tstIEMAImplData_adjust,Int-Amd)
383$(evalcall2 def_tstIEMAImplData_adjust,Int-Intel)
384$(evalcall2 def_tstIEMAImplData_adjust,FpuLdSt)
385$(evalcall2 def_tstIEMAImplData_adjust,FpuLdSt-Amd)
386$(evalcall2 def_tstIEMAImplData_adjust,FpuLdSt-Intel)
387$(evalcall2 def_tstIEMAImplData_adjust,FpuBinary1)
388$(evalcall2 def_tstIEMAImplData_adjust,FpuBinary1-Amd)
389$(evalcall2 def_tstIEMAImplData_adjust,FpuBinary1-Intel)
390$(evalcall2 def_tstIEMAImplData_adjust,FpuBinary2)
391$(evalcall2 def_tstIEMAImplData_adjust,FpuOther)
392$(evalcall2 def_tstIEMAImplData_adjust,FpuOther-Amd)
393$(evalcall2 def_tstIEMAImplData_adjust,FpuOther-Intel)
394
395
396#
397# Testcase for checking the repurposing of the IEM instruction code.
398#
399tstIEMCheckMc_TEMPLATE = VBOXR3TSTEXE
400tstIEMCheckMc_SOURCES = tstIEMCheckMc.cpp
401tstIEMCheckMc_DEFS = $(VMM_COMMON_DEFS)
402tstIEMCheckMc_LIBS = $(LIB_RUNTIME)
403ifeq ($(KBUILD_TARGET),win)
404tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -wd4189 # local variable is initialized but not used.
405else
406tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -Wno-unused-value -Wno-unused-variable
407endif
408
409#
410# Saved state manager testcase.
411#
412tstSSM_TEMPLATE = VBOXR3TSTEXE
413tstSSM_INCS = $(VBOX_PATH_VMM_SRC)/include
414tstSSM_DEFS = $(VMM_COMMON_DEFS)
415tstSSM_SOURCES = tstSSM.cpp
416tstSSM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
417
418#
419# VMM configuration manager tests.
420#
421if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
422tstCFGMHardened_TEMPLATE = VBoxR3HardenedTstExe
423tstCFGMHardened_NAME = tstCFGM
424 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
425tstCFGMHardened_DEFS = PROGRAM_NAME_STR="tstCFGM"
426 else
427tstCFGMHardened_DEFS = PROGRAM_NAME_STR=\"tstCFGM\"
428 endif
429tstCFGMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
430tstCFGM_TEMPLATE = VBoxR3HardenedTstDll
431else
432tstCFGM_TEMPLATE = VBOXR3TSTEXE
433endif
434tstCFGM_DEFS = $(VMM_COMMON_DEFS)
435tstCFGM_SOURCES = tstCFGM.cpp
436tstCFGM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
437
438#
439# Comparing some compression algorithms considered for SSM usage.
440#
441tstCompressionBenchmark_TEMPLATE = VBOXR3TSTEXE
442tstCompressionBenchmark_SOURCES = tstCompressionBenchmark.cpp
443
444#
445# Two testcases for checking the ring-0 setjmp/longjmp code.
446#
447tstVMMR0CallHost-1_TEMPLATE = VBOXR3TSTEXE
448tstVMMR0CallHost-1_INCS = $(VBOX_PATH_VMM_SRC)/include
449tstVMMR0CallHost-1_SOURCES = \
450 tstVMMR0CallHost-1.cpp
451tstVMMR0CallHost-1_SOURCES.amd64 = \
452 $(VBOX_PATH_VMM_SRC)/VMMR0/VMMR0JmpA-amd64.asm
453tstVMMR0CallHost-1_SOURCES.x86 = \
454 $(VBOX_PATH_VMM_SRC)/VMMR0/VMMR0JmpA-x86.asm
455
456
457#
458# For testing the VM request queue code.
459#
460if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
461tstVMREQHardened_TEMPLATE = VBOXR3HARDENEDEXE
462tstVMREQHardened_NAME = tstVMREQ
463 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
464tstVMREQHardened_DEFS = PROGRAM_NAME_STR="tstVMREQ"
465 else
466tstVMREQHardened_DEFS = PROGRAM_NAME_STR=\"tstVMREQ\"
467 endif
468tstVMREQHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
469tstVMREQ_TEMPLATE = VBOXR3
470else
471tstVMREQ_TEMPLATE = VBOXR3EXE
472endif
473tstVMREQ_DEFS = $(VMM_COMMON_DEFS)
474tstVMREQ_SOURCES = tstVMREQ.cpp
475tstVMREQ_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
476
477#
478# Tool for reanimate things like OS/2 dumps.
479#
480if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
481tstAnimateHardened_TEMPLATE = VBOXR3HARDENEDEXE
482tstAnimateHardened_NAME = tstAnimate
483 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
484tstAnimateHardened_DEFS = PROGRAM_NAME_STR="tstAnimate"
485 else
486tstAnimateHardened_DEFS = PROGRAM_NAME_STR=\"tstAnimate\"
487 endif
488tstAnimateHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
489tstAnimate_TEMPLATE = VBOXR3
490else
491tstAnimate_TEMPLATE = VBOXR3EXE
492endif
493tstAnimate_DEFS = $(VMM_COMMON_DEFS)
494tstAnimate_SOURCES = tstAnimate.cpp
495tstAnimate_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
496
497tstX86-1_TEMPLATE = VBOXR3TSTEXE
498tstX86-1_SOURCES = tstX86-1.cpp tstX86-1A.asm
499tstX86-1_LIBS = $(LIB_RUNTIME)
500tstX86-1_LDFLAGS.linux = $(VBOX_GCC_no-pie)
501
502tstX86-FpuSaveRestore_TEMPLATE = VBOXR3TSTEXE
503tstX86-FpuSaveRestore_SOURCES = tstX86-FpuSaveRestore.cpp tstX86-FpuSaveRestoreA.asm
504tstX86-FpuSaveRestore_LIBS = $(LIB_RUNTIME)
505
506ifdef VBOX_WITH_RAW_MODE
507
508 #
509 # Raw-mode VMM testcase.
510 #
511 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
512tstVMMHardened_TEMPLATE = VBOXR3HARDENEDEXE
513tstVMMHardened_NAME = tstVMM
514 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
515tstVMMHardened_DEFS = PROGRAM_NAME_STR="tstVMM"
516 else
517tstVMMHardened_DEFS = PROGRAM_NAME_STR=\"tstVMM\"
518 endif
519tstVMMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
520tstVMM_TEMPLATE = VBOXR3
521 else
522tstVMM_TEMPLATE = VBOXR3EXE
523 endif
524tstVMM_SOURCES = tstVMM.cpp
525tstVMM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
526
527#
528# HM VMM testcase.
529#
530tstVMM-HM_TEMPLATE = VBOXR3EXE
531tstVMM-HM_SOURCES = tstVMM-HM.cpp
532tstVMM-HM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
533
534#
535# VMM host process fork test case (memory ++).
536#
537tstVMMFork_TEMPLATE = VBOXR3EXE
538tstVMMFork_SOURCES = tstVMMFork.cpp
539tstVMMFork_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
540
541#
542# Raw-mode micro benchmark.
543#
544 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
545tstMicroHardened_TEMPLATE = VBOXR3HARDENEDEXE
546tstMicroHardened_NAME = tstMicro
547 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
548tstMicroHardened_DEFS = PROGRAM_NAME_STR="tstMicro"
549 else
550tstMicroHardened_DEFS = PROGRAM_NAME_STR=\"tstMicro\"
551 endif
552tstMicroHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
553tstMicro_TEMPLATE = VBOXR3
554 else
555tstMicro_TEMPLATE = VBOXR3EXE
556 endif
557tstMicro_SOURCES = tstMicro.cpp
558tstMicro_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
559tstMicro_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
560
561tstMicroRC_TEMPLATE = VBoxRc
562tstMicroRC_SOURCES = tstMicroRC.cpp tstMicroRCA.asm
563tstMicroRC_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
564tstMicroRC_INCS = $(VBOX_PATH_VMM_SRC)/testcase
565 ifeq ($(VBOX_LDR_FMT32),pe)
566tstMicroRC_LDFLAGS = -Entry:tstMicroRC
567 endif
568tstMicroRC_SYSSUFF = .gc
569tstMicroRC_LIBS = \
570 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
571 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
572 ifeq ($(filter-out pe lx,$(VBOX_LDR_FMT32)),)
573tstMicroRC_LIBS += \
574 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
575 $(LIB_VMMRC)
576 endif
577tstMicroRC_SOURCES.win = tstMicroRC.def
578
579endif # VBOX_WITH_RAW_MODE
580
581
582if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)
583#
584# Special NEM host testcase.
585#
586 if ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "darwin.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \
587 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "linux.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \
588 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "win.amd64" && defined(VBOX_WITH_NATIVE_NEM))
589PROGRAMS += NemRawBench-1
590NemRawBench-1_TEMPLATE = VBoxR3Static
591NemRawBench-1_SOURCES = NemRawBench-1.cpp
592NemRawBench-1_BLD_TYPE = release
593NemRawBench-1_INCS.win = \
594 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/um \
595 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/shared
596NemRawBench-1_CXXFLAGS.darwin = \
597 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
598#NemRawBench-1_LDFLAGS.darwin = \
599# -F/System/Library/Frameworks \
600# -framework Hypervisor
601NemRawBench-1_LDFLAGS.darwin = \
602 /System/Library/Frameworks/Hypervisor.framework/Hypervisor
603 endif
604endif
605
606#
607# PDM Queue tests.
608#
609tstPDMQueue_TEMPLATE := VBOXR3EXE
610tstPDMQueue_DEFS = $(VMM_COMMON_DEFS)
611tstPDMQueue_SOURCES := tstPDMQueue.cpp
612tstPDMQueue_LIBS := $(LIB_VMM) $(LIB_RUNTIME)
613
614
615ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
616#
617# PDM asynchronous completation test.
618#
619 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
620tstPDMAsyncCompletionHardened_TEMPLATE = VBOXR3HARDENEDEXE
621tstPDMAsyncCompletionHardened_NAME = tstPDMAsyncCompletion
622 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
623tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletion"
624 else
625tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletion\"
626 endif
627tstPDMAsyncCompletionHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
628tstPDMAsyncCompletion_TEMPLATE = VBOXR3
629 else
630tstPDMAsyncCompletion_TEMPLATE = VBOXR3EXE
631 endif
632tstPDMAsyncCompletion_DEFS = $(VMM_COMMON_DEFS)
633tstPDMAsyncCompletion_INCS = $(VBOX_PATH_VMM_SRC)/include
634tstPDMAsyncCompletion_SOURCES = tstPDMAsyncCompletion.cpp
635tstPDMAsyncCompletion_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
636
637#
638# PDM asynchronous completation stress test.
639#
640 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
641tstPDMAsyncCompletionStressHardened_TEMPLATE = VBOXR3HARDENEDEXE
642tstPDMAsyncCompletionStressHardened_NAME = tstPDMAsyncCompletionStress
643 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
644tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletionStress"
645 else
646tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletionStress\"
647 endif
648tstPDMAsyncCompletionStressHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
649tstPDMAsyncCompletionStress_TEMPLATE = VBOXR3
650 else
651tstPDMAsyncCompletionStress_TEMPLATE = VBOXR3EXE
652 endif
653tstPDMAsyncCompletionStress_DEFS = $(VMM_COMMON_DEFS)
654tstPDMAsyncCompletionStress_INCS = $(VBOX_PATH_VMM_SRC)/include
655tstPDMAsyncCompletionStress_SOURCES = tstPDMAsyncCompletionStress.cpp
656tstPDMAsyncCompletionStress_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
657endif
658
659ifndef VBOX_ONLY_EXTPACKS
660PROGRAMS += tstSSM-2
661tstSSM-2_TEMPLATE = VBOXR3TSTEXE
662tstSSM-2_DEFS = IN_VMM_STATIC
663tstSSM-2_SOURCES = tstSSM-2.cpp
664tstSSM-2_LIBS = $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB)
665endif
666
667#
668# Generate VM structure tests.
669#
670if !defined(VBOX_ONLY_EXTPACKS) \
671 && ( defined(VBOX_WITH_DTRACE_R3) \
672 || defined(VBOX_WITH_DTRACE_R0) \
673 || defined(VBOX_WITH_DTRACE_RC))
674tstVMStructDTrace_TEMPLATE = VBOXR3AUTOTST
675tstVMStructDTrace_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)
676 ifdef VBOX_WITH_RAW_MODE
677tstVMStructDTrace_DEFS += VBOX_WITH_RAW_MODE
678 endif
679tstVMStructDTrace_INCS = \
680 $(VBOX_PATH_VMM_SRC)/include \
681 $(VBOX_PATH_VMM_SRC)/PATM \
682 $(VBOX_VMM_TESTCASE_OUT_DIR)
683tstVMStructDTrace_SOURCES = tstVMStructDTrace.cpp
684 ifdef VBOX_WITH_R0_LOGGING
685tstVMStructDTrace_DEFS += VBOX_WITH_R0_LOGGING
686 endif
687
688
689VMMLibDTraceStructTest_INST = $(VBOX_INST_DTRACE_TST)$(KBUILD_TARGET_ARCH)/
690VMMLibDTraceStructTest_SOURCES = \
691 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d
692VMMLibDTraceStructTest_CLEAN = \
693 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d
694
695$$(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d: \
696 $$(tstVMStructDTrace_1_STAGE_TARGET) | $$(dir $$@)
697 $(QUIET)$(RM) -f $@
698 $< > $@
699
700endif
701
702
703include $(FILE_KBUILD_SUB_FOOTER)
704
705
706#
707# Some handcrafted support targets for tstAsmStructs.
708#
709MY_ASA_ASM_STUFF = \
710 $(addprefix -D, \
711 $(DEFS) \
712 $(DEFS.$(KBUILD_TYPE)) \
713 $(DEFS.$(KBUILD_TARGET)) \
714 IN_RING3 $(ARCH_BITS_DEFS) \
715 $(DEFS.$(KBUILD_TARGET_ARCH)) \
716 $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \
717 $(VMM_COMMON_DEFS) \
718 ) \
719 -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \
720 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_PATH_VMM_SRC)/include $(VBOX_VMM_TESTCASE_OUT_DIR)\
721 ,-I$(inc)/)
722
723# 1a. make a header file which makes all the structures+members globals.
724$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac: \
725 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
726 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed \
727 $(DEPTH)/include/iprt/asmdefs.mac \
728 $(DEPTH)/include/VBox/vmm/cpum.mac \
729 $(DEPTH)/include/VBox/vmm/vm.mac \
730 $(DEPTH)/include/VBox/vmm/gvm.mac \
731 $(DEPTH)/include/VBox/sup.mac \
732 $(DEPTH)/include/iprt/x86.mac \
733 $(VBOX_PATH_VMM_SRC)/include/CPUMInternal.mac \
734 $(VBOX_PATH_VMM_SRC)/include/HMInternal.mac \
735 $(VBOX_PATH_VMM_SRC)/include/VMMInternal.mac \
736 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
737 $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) \
738 | $$(dir $$@)
739 $(call MSG_GENERATE,tstVMStructSize,$@,$<)
740ifndef DONT_USE_YASM
741 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $<
742 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed --output $@ [email protected]
743else
744 $(QUIET)$(TOOL_NASM_AS) -g $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $<
745 $(VBOX_NM) [email protected] | $(SED) \
746 -e '/[0-9a-fA-F][0-9a-fA-F]* [^a] /d' \
747 -e 's/[0-9a-fA-F][0-9a-fA-F]* a \([^ ]*\)/global \1/' \
748 > $@
749endif
750
751# 1b. make an elf/macho object containing the offsets.
752includedep $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep
753$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o: \
754 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
755 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
756 $(DEPTH)/include/iprt/asmdefs.mac \
757 $(DEPTH)/include/VBox/vmm/cpum.mac \
758 $(DEPTH)/include/VBox/vmm/hm_vmx.mac \
759 $(DEPTH)/include/VBox/vmm/stam.mac \
760 $(DEPTH)/include/VBox/vmm/vm.mac \
761 $(DEPTH)/include/VBox/sup.mac \
762 $(DEPTH)/include/iprt/x86.mac \
763 $(VBOX_PATH_VMM_SRC)/include/CPUMInternal.mac \
764 $(VBOX_PATH_VMM_SRC)/include/HMInternal.mac \
765 $(VBOX_PATH_VMM_SRC)/include/VMMInternal.mac \
766 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
767 $$(if $$(eq $$(tstAsmStructsAsmDep_STUFF),$$(MY_ASA_ASM_STUFF)),,FORCE) \
768 | $$(dir $$@)
769 $(call MSG_COMPILE,tstAsmStructsasm,$<,$@,AS)
770ifndef DONT_USE_YASM
771 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
772else
773 $(QUIET)$(TOOL_NASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
774endif
775 %$(QUIET2)$(RM) -f -- $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep
776 %$(QUIET2)$(APPEND) '$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep' 'tstAsmStructsAsmDep_STUFF=$(MY_ASA_ASM_STUFF)'
777
778# 2. use nm and sed to transform this into the header we want.
779$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o
780 $(call MSG_GENERATE,tstVMStructSize,$@,$<)
781 $(QUIET)$(RM) -f $@ [email protected] [email protected]
782 $(QUIET)$(REDIRECT) -wo [email protected] -- $(VBOX_NM) $<
783 $(QUIET)$(SED) \
784 -e '/STAMPROFILEADV/d' \
785 \
786 -e '/^\(0x\)\{0,1\}00[0-9a-fA-F]* [aAnN] [^_.]*\./!d' \
787 -e 's/^\(0x\)\{0,1\}\(00[0-9a-fA-F]*\) [aAnN] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\3, 0x0\2, \4);/' \
788 --output [email protected] [email protected]
789 $(QUIET)$(SED) \
790 -e '/VM_size$$/d' \
791 -e '/VMCPU_size$$/d' \
792 -e '/VMMCPU_size$$/d' \
793 -e '/SUPDRVTRACERUSRCTX32_size$$/d' \
794 -e '/HMCPU_size$$/d' \
795 \
796 -e '/^\(0x\)\{0,1\}00[0-9a-fA-F]* [aAnN] [^_.]*_size$$/!d' \
797 -e 's/^\(0x\)\{0,1\}\(00[0-9a-fA-F]*\) [aAnN] \([^_.]*\)_size/ CHECK_SIZE(\3, 0x0\2);/' \
798 --append [email protected] [email protected]
799 $(QUIET)$(MV) -f [email protected] $@
800 $(QUIET)$(RM) -f [email protected]
801
802# 3. run it.
803$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run: \
804 $$(tstAsmStructs_1_STAGE_TARGET) \
805 $(if-expr defined(VBOX_WITH_RAW_MODE),$$(tstAsmStructsRC_1_STAGE_TARGET),)
806 $(QUIET)$(RM) -f $@
807 $(tstAsmStructs_1_STAGE_TARGET)
808ifdef VBOX_WITH_RAW_MODE
809 $(tstAsmStructsRC_1_STAGE_TARGET)
810endif
811 $(QUIET)$(APPEND) "$@" "done"
812
813
814
815#
816# Run rule for tstVMStructSize.
817#
818
819ifdef VBOX_WITH_RAW_MODE
820# 1. Manually dump selected structures and members.
821$(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h: $$(tstVMStructRC_1_STAGE_TARGET) | $$(dir $$@)
822 $(call MSG_GENERATE,tstVMStructSize,$@)
823 $(QUIET)$(REDIRECT) -wo $@ -- $<
824endif # VBOX_WITH_RAW_MODE
825
826# 2. run it.
827$(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run: $$(tstVMStructSize_1_STAGE_TARGET) | $$(dir $$@)
828 $(QUIET)$(RM) -f $@
829 $<
830 $(QUIET)$(APPEND) "$@" "done"
831
832# alias for the two struct tests.
833run-struct-tests: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
834
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette