VirtualBox

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

Last change on this file since 107608 was 107227, checked in by vboxsync, 2 months ago

VMM: Cleaning up ARMv8 / x86 split. jiraref:VBP-1470

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 43.8 KB
Line 
1# $Id: Makefile.kmk 107227 2024-12-04 15:20:14Z vboxsync $
2## @file
3# Sub-Makefile for the VMM testcases.
4#
5
6#
7# Copyright (C) 2006-2024 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
42PROGRAMS.amd64 += tstAsmStructs
43ifdef VBOX_WITH_RAW_MODE
44 PROGRAMS += tstVMStructRC
45 PROGRAMS.amd64 += tstAsmStructsRC
46endif
47if !defined(VBOX_ONLY_EXTPACKS) \
48 && ( defined(VBOX_WITH_DTRACE_R3) \
49 || defined(VBOX_WITH_DTRACE_R0) \
50 || defined(VBOX_WITH_DTRACE_RC))
51 PROGRAMS += tstVMStructDTrace
52 INSTALLS += VMMLibDTraceStructTest
53endif
54ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
55 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
56 PROGRAMS += tstGlobalConfigHardened
57 DLL += tstGlobalConfig
58 else
59 PROGRAMS += tstGlobalConfig
60 endif
61
62 ifdef VBOX_WITH_RAW_MODE
63 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
64 PROGRAMS += tstVMMHardened
65 DLLS += tstVMM
66 else
67 PROGRAMS += tstVMM tstVMM-HM
68 endif
69 ifneq ($(KBUILD_TARGET),win)
70 PROGRAMS += tstVMMFork
71 endif
72 endif
73 ifdef VBOX_WITH_TESTCASES
74 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
75 PROGRAMS += tstCFGMHardened tstVMREQHardened tstAnimateHardened
76 DLLS += tstCFGM tstVMREQ tstAnimate
77 else
78 PROGRAMS += tstCFGM tstVMREQ tstAnimate
79 endif
80 PROGRAMS += \
81 tstCompressionBenchmark \
82 tstIEMCheckMc \
83 tstIEMAImpl \
84 tstPDMQueue \
85 tstSSM
86 PROGRAMS.amd64 += tstIEMAImplAsm
87 if defined(VBOX_WITH_IEM_NATIVE_RECOMPILER) && defined(VBOX_WITH_IEM_RECOMPILER)
88 PROGRAMS += tstIEMN8veProfiling
89 endif
90
91 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
92 PROGRAMS += \
93 tstVMMR0CallHost-1 \
94 tstX86-FpuSaveRestore
95 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), solaris.x86 solaris.amd64 win.amd64) ## TODO: Fix the code.
96 PROGRAMS += tstX86-1
97 endif
98 endif
99 ifdef VBOX_WITH_RAW_MODE
100 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
101 PROGRAMS += tstMicroHardened
102 DLLS += tstMicro
103 else
104 PROGRAMS += tstMicro
105 endif
106 SYSMODS += tstMicroRC
107 endif
108 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
109 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
110 PROGRAMS += tstPDMAsyncCompletionHardened tstPDMAsyncCompletionStressHardened
111 DLLS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress
112 else
113 PROGRAMS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress
114 endif
115 endif
116 endif # VBOX_WITH_TESTCASES
117endif # !VBOX_ONLY_EXTPACKS_USE_IMPLIBS
118
119# Where we put our temporary files (just for simplicity)
120VBOX_VMM_TESTCASE_OUT_DIR := $(PATH_TARGET)/VMM
121BLDDIRS += $(VBOX_VMM_TESTCASE_OUT_DIR)
122
123#
124# We setup two 'other' targets for executing the two structure & alignment
125# validation testcases. Perhaps a bit hackish, but extremely useful.
126#
127ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),$(KBUILD_HOST).$(KBUILD_HOST_ARCH))
128 OTHERS += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
129 OTHERS.amd64 += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run
130endif
131
132# The normal testing pass.
133TESTING += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
134TESTING.amd64 += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run
135
136OTHER_CLEAN += \
137 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
138 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run \
139 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o \
140 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep \
141 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
142 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.o \
143 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.lst \
144 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h \
145 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h \
146 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h
147
148#
149# Globals
150#
151VBOX_PATH_VMM_SRC = $(PATH_ROOT)/src/VBox/VMM
152
153#
154# Targets
155#
156ifdef VBOX_WITH_RAW_MODE
157 tstVMStructRC_TEMPLATE = VBoxRcExe
158 tstVMStructRC_DEFS = VBOX_VMM_TARGET_AGNOSTIC VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
159 ifdef VBOX_WITH_R0_LOGGING
160 tstVMStructRC_DEFS += VBOX_WITH_R0_LOGGING
161 endif
162 tstVMStructRC_SOURCES = tstVMStructRC.cpp
163 tstVMStructRC_INCS = \
164 $(VBOX_PATH_VMM_SRC)/include \
165 $(VBOX_PATH_VMM_SRC)/PATM
166endif
167
168tstVMStructSize_TEMPLATE = VBoxR3AutoTest
169ifneq ($(KBUILD_TARGET),win)
170 tstVMStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)
171endif
172tstVMStructSize_DEFS = VBOX_VMM_TARGET_AGNOSTIC VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)
173ifdef VBOX_WITH_RAW_MODE
174 tstVMStructSize_DEFS += VBOX_WITH_RAW_MODE
175endif
176tstVMStructSize_INCS = \
177 $(VBOX_PATH_VMM_SRC)/include \
178 $(tstVMStructSize_0_OUTDIR) \
179 $(VBOX_VMM_TESTCASE_OUT_DIR)
180tstVMStructSize_SOURCES = tstVMStructSize.cpp
181ifdef VBOX_WITH_RAW_MODE
182 tstVMStructSize.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h
183endif
184ifdef VBOX_WITH_R0_LOGGING
185 tstVMStructSize_DEFS += VBOX_WITH_R0_LOGGING
186endif
187$(call KB_FN_DO_PASS0_ON_TARGET,tstVMStructSize)
188$(evalcall2 def_VBoxGenIEMInstructionStatisticsTmpl_Header,tstVMStructSize,$(tstVMStructSize_0_OUTDIR))
189
190tstAsmStructs_TEMPLATE = VBoxR3AutoTest
191ifneq ($(KBUILD_TARGET),win)
192 tstAsmStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)
193endif
194tstAsmStructs_DEFS = VBOX_VMM_TARGET_AGNOSTIC VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)
195ifdef VBOX_WITH_RAW_MODE
196 tstAsmStructs_DEFS += VBOX_WITH_RAW_MODE
197endif
198ifdef VBOX_WITH_R0_LOGGING
199 tstAsmStructs_DEFS += VBOX_WITH_R0_LOGGING
200endif
201tstAsmStructs_INCS = \
202 $(VBOX_PATH_VMM_SRC)/include \
203 $(VBOX_VMM_TESTCASE_OUT_DIR)
204tstAsmStructs_SOURCES = tstAsmStructs.cpp
205tstAsmStructs.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h
206
207ifdef VBOX_WITH_RAW_MODE
208 tstAsmStructsRC_TEMPLATE = VBoxRcExe
209 tstAsmStructsRC_DEFS = VBOX_VMM_TARGET_AGNOSTIC VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
210 ifdef VBOX_WITH_R0_LOGGING
211 tstAsmStructsRC_DEFS += VBOX_WITH_R0_LOGGING
212 endif
213 tstAsmStructsRC_INCS = \
214 $(VBOX_PATH_VMM_SRC)/include \
215 $(VBOX_VMM_TESTCASE_OUT_DIR)
216 tstAsmStructsRC_SOURCES = tstAsmStructs.cpp
217 tstAsmStructs.cpp_DEPS += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h
218endif # VBOX_WITH_RAW_MODE
219
220
221#
222# Global config tool.
223#
224if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
225 tstGlobalConfigHardened_TEMPLATE = VBoxR3HardenedTstExe
226 tstGlobalConfigHardened_NAME = tstGlobalConfig
227 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
228 tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR="tstGlobalConfig"
229 else
230 tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR=\"tstGlobalConfig\"
231 endif
232 tstGlobalConfigHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
233 tstGlobalConfig_TEMPLATE = VBoxR3HardenedTstDll
234else
235 tstGlobalConfig_TEMPLATE = VBoxR3SignedTstExe
236endif
237tstGlobalConfig_SOURCES = tstGlobalConfig.cpp
238tstGlobalConfig_LIBS = $(LIB_RUNTIME)
239
240
241#
242# Testcase for checking the C (IEMAllAImplC.cpp) and assembly (IEMAllAImpl.asm)
243# instruction emulation helpers.
244#
245TSTIEMAIMPL_TEST_DATA_DEPS := \
246 tstIEMAImplDataInt-adcx_u32.bin.gz \
247 tstIEMAImplDataInt-adcx_u64.bin.gz \
248 tstIEMAImplDataInt-adc_u8.bin.gz \
249 tstIEMAImplDataInt-adc_u8_locked.bin.gz \
250 tstIEMAImplDataInt-adc_u16.bin.gz \
251 tstIEMAImplDataInt-adc_u16_locked.bin.gz \
252 tstIEMAImplDataInt-adc_u32.bin.gz \
253 tstIEMAImplDataInt-adc_u32_locked.bin.gz \
254 tstIEMAImplDataInt-adc_u64.bin.gz \
255 tstIEMAImplDataInt-adc_u64_locked.bin.gz \
256 tstIEMAImplDataInt-add_u8.bin.gz \
257 tstIEMAImplDataInt-add_u8_locked.bin.gz \
258 tstIEMAImplDataInt-add_u16.bin.gz \
259 tstIEMAImplDataInt-add_u16_locked.bin.gz \
260 tstIEMAImplDataInt-add_u32.bin.gz \
261 tstIEMAImplDataInt-add_u32_locked.bin.gz \
262 tstIEMAImplDataInt-add_u64.bin.gz \
263 tstIEMAImplDataInt-add_u64_locked.bin.gz \
264 tstIEMAImplDataInt-adox_u32.bin.gz \
265 tstIEMAImplDataInt-adox_u64.bin.gz \
266 tstIEMAImplDataInt-and_u8.bin.gz \
267 tstIEMAImplDataInt-and_u8_locked.bin.gz \
268 tstIEMAImplDataInt-and_u16.bin.gz \
269 tstIEMAImplDataInt-and_u16_locked.bin.gz \
270 tstIEMAImplDataInt-and_u32.bin.gz \
271 tstIEMAImplDataInt-and_u32_locked.bin.gz \
272 tstIEMAImplDataInt-and_u64.bin.gz \
273 tstIEMAImplDataInt-and_u64_locked.bin.gz \
274 tstIEMAImplDataInt-arpl.bin.gz \
275 tstIEMAImplDataInt-bsf_u16_amd.bin.gz \
276 tstIEMAImplDataInt-bsf_u16_intel.bin.gz \
277 tstIEMAImplDataInt-bsf_u32_amd.bin.gz \
278 tstIEMAImplDataInt-bsf_u32_intel.bin.gz \
279 tstIEMAImplDataInt-bsf_u64_amd.bin.gz \
280 tstIEMAImplDataInt-bsf_u64_intel.bin.gz \
281 tstIEMAImplDataInt-bsr_u16_amd.bin.gz \
282 tstIEMAImplDataInt-bsr_u16_intel.bin.gz \
283 tstIEMAImplDataInt-bsr_u32_amd.bin.gz \
284 tstIEMAImplDataInt-bsr_u32_intel.bin.gz \
285 tstIEMAImplDataInt-bsr_u64_amd.bin.gz \
286 tstIEMAImplDataInt-bsr_u64_intel.bin.gz \
287 tstIEMAImplDataInt-btc_u16.bin.gz \
288 tstIEMAImplDataInt-btc_u16_locked.bin.gz \
289 tstIEMAImplDataInt-btc_u32.bin.gz \
290 tstIEMAImplDataInt-btc_u32_locked.bin.gz \
291 tstIEMAImplDataInt-btc_u64.bin.gz \
292 tstIEMAImplDataInt-btc_u64_locked.bin.gz \
293 tstIEMAImplDataInt-btr_u16.bin.gz \
294 tstIEMAImplDataInt-btr_u16_locked.bin.gz \
295 tstIEMAImplDataInt-btr_u32.bin.gz \
296 tstIEMAImplDataInt-btr_u32_locked.bin.gz \
297 tstIEMAImplDataInt-btr_u64.bin.gz \
298 tstIEMAImplDataInt-btr_u64_locked.bin.gz \
299 tstIEMAImplDataInt-bts_u16.bin.gz \
300 tstIEMAImplDataInt-bts_u16_locked.bin.gz \
301 tstIEMAImplDataInt-bts_u32.bin.gz \
302 tstIEMAImplDataInt-bts_u32_locked.bin.gz \
303 tstIEMAImplDataInt-bts_u64.bin.gz \
304 tstIEMAImplDataInt-bts_u64_locked.bin.gz \
305 tstIEMAImplDataInt-bt_u16.bin.gz \
306 tstIEMAImplDataInt-bt_u32.bin.gz \
307 tstIEMAImplDataInt-bt_u64.bin.gz \
308 tstIEMAImplDataInt-cmp_u8.bin.gz \
309 tstIEMAImplDataInt-cmp_u16.bin.gz \
310 tstIEMAImplDataInt-cmp_u32.bin.gz \
311 tstIEMAImplDataInt-cmp_u64.bin.gz \
312 tstIEMAImplDataInt-dec_u8.bin.gz \
313 tstIEMAImplDataInt-dec_u8_locked.bin.gz \
314 tstIEMAImplDataInt-dec_u16.bin.gz \
315 tstIEMAImplDataInt-dec_u16_locked.bin.gz \
316 tstIEMAImplDataInt-dec_u32.bin.gz \
317 tstIEMAImplDataInt-dec_u32_locked.bin.gz \
318 tstIEMAImplDataInt-dec_u64.bin.gz \
319 tstIEMAImplDataInt-dec_u64_locked.bin.gz \
320 tstIEMAImplDataInt-div_u8_amd.bin.gz \
321 tstIEMAImplDataInt-div_u8_intel.bin.gz \
322 tstIEMAImplDataInt-div_u16_amd.bin.gz \
323 tstIEMAImplDataInt-div_u16_intel.bin.gz \
324 tstIEMAImplDataInt-div_u32_amd.bin.gz \
325 tstIEMAImplDataInt-div_u32_intel.bin.gz \
326 tstIEMAImplDataInt-div_u64_amd.bin.gz \
327 tstIEMAImplDataInt-div_u64_intel.bin.gz \
328 tstIEMAImplDataInt-idiv_u8_amd.bin.gz \
329 tstIEMAImplDataInt-idiv_u8_intel.bin.gz \
330 tstIEMAImplDataInt-idiv_u16_amd.bin.gz \
331 tstIEMAImplDataInt-idiv_u16_intel.bin.gz \
332 tstIEMAImplDataInt-idiv_u32_amd.bin.gz \
333 tstIEMAImplDataInt-idiv_u32_intel.bin.gz \
334 tstIEMAImplDataInt-idiv_u64_amd.bin.gz \
335 tstIEMAImplDataInt-idiv_u64_intel.bin.gz \
336 tstIEMAImplDataInt-imul_two_u16_amd.bin.gz \
337 tstIEMAImplDataInt-imul_two_u16_intel.bin.gz \
338 tstIEMAImplDataInt-imul_two_u32_amd.bin.gz \
339 tstIEMAImplDataInt-imul_two_u32_intel.bin.gz \
340 tstIEMAImplDataInt-imul_two_u64_amd.bin.gz \
341 tstIEMAImplDataInt-imul_two_u64_intel.bin.gz \
342 tstIEMAImplDataInt-imul_u8_amd.bin.gz \
343 tstIEMAImplDataInt-imul_u8_intel.bin.gz \
344 tstIEMAImplDataInt-imul_u16_amd.bin.gz \
345 tstIEMAImplDataInt-imul_u16_intel.bin.gz \
346 tstIEMAImplDataInt-imul_u32_amd.bin.gz \
347 tstIEMAImplDataInt-imul_u32_intel.bin.gz \
348 tstIEMAImplDataInt-imul_u64_amd.bin.gz \
349 tstIEMAImplDataInt-imul_u64_intel.bin.gz \
350 tstIEMAImplDataInt-inc_u8.bin.gz \
351 tstIEMAImplDataInt-inc_u8_locked.bin.gz \
352 tstIEMAImplDataInt-inc_u16.bin.gz \
353 tstIEMAImplDataInt-inc_u16_locked.bin.gz \
354 tstIEMAImplDataInt-inc_u32.bin.gz \
355 tstIEMAImplDataInt-inc_u32_locked.bin.gz \
356 tstIEMAImplDataInt-inc_u64.bin.gz \
357 tstIEMAImplDataInt-inc_u64_locked.bin.gz \
358 tstIEMAImplDataInt-mul_u8_amd.bin.gz \
359 tstIEMAImplDataInt-mul_u8_intel.bin.gz \
360 tstIEMAImplDataInt-mul_u16_amd.bin.gz \
361 tstIEMAImplDataInt-mul_u16_intel.bin.gz \
362 tstIEMAImplDataInt-mul_u32_amd.bin.gz \
363 tstIEMAImplDataInt-mul_u32_intel.bin.gz \
364 tstIEMAImplDataInt-mul_u64_amd.bin.gz \
365 tstIEMAImplDataInt-mul_u64_intel.bin.gz \
366 tstIEMAImplDataInt-neg_u8.bin.gz \
367 tstIEMAImplDataInt-neg_u8_locked.bin.gz \
368 tstIEMAImplDataInt-neg_u16.bin.gz \
369 tstIEMAImplDataInt-neg_u16_locked.bin.gz \
370 tstIEMAImplDataInt-neg_u32.bin.gz \
371 tstIEMAImplDataInt-neg_u32_locked.bin.gz \
372 tstIEMAImplDataInt-neg_u64.bin.gz \
373 tstIEMAImplDataInt-neg_u64_locked.bin.gz \
374 tstIEMAImplDataInt-not_u8.bin.gz \
375 tstIEMAImplDataInt-not_u8_locked.bin.gz \
376 tstIEMAImplDataInt-not_u16.bin.gz \
377 tstIEMAImplDataInt-not_u16_locked.bin.gz \
378 tstIEMAImplDataInt-not_u32.bin.gz \
379 tstIEMAImplDataInt-not_u32_locked.bin.gz \
380 tstIEMAImplDataInt-not_u64.bin.gz \
381 tstIEMAImplDataInt-not_u64_locked.bin.gz \
382 tstIEMAImplDataInt-or_u8.bin.gz \
383 tstIEMAImplDataInt-or_u8_locked.bin.gz \
384 tstIEMAImplDataInt-or_u16.bin.gz \
385 tstIEMAImplDataInt-or_u16_locked.bin.gz \
386 tstIEMAImplDataInt-or_u32.bin.gz \
387 tstIEMAImplDataInt-or_u32_locked.bin.gz \
388 tstIEMAImplDataInt-or_u64.bin.gz \
389 tstIEMAImplDataInt-or_u64_locked.bin.gz \
390 tstIEMAImplDataInt-rcl_u8_amd.bin.gz \
391 tstIEMAImplDataInt-rcl_u8_intel.bin.gz \
392 tstIEMAImplDataInt-rcl_u16_amd.bin.gz \
393 tstIEMAImplDataInt-rcl_u16_intel.bin.gz \
394 tstIEMAImplDataInt-rcl_u32_amd.bin.gz \
395 tstIEMAImplDataInt-rcl_u32_intel.bin.gz \
396 tstIEMAImplDataInt-rcl_u64_amd.bin.gz \
397 tstIEMAImplDataInt-rcl_u64_intel.bin.gz \
398 tstIEMAImplDataInt-rcr_u8_amd.bin.gz \
399 tstIEMAImplDataInt-rcr_u8_intel.bin.gz \
400 tstIEMAImplDataInt-rcr_u16_amd.bin.gz \
401 tstIEMAImplDataInt-rcr_u16_intel.bin.gz \
402 tstIEMAImplDataInt-rcr_u32_amd.bin.gz \
403 tstIEMAImplDataInt-rcr_u32_intel.bin.gz \
404 tstIEMAImplDataInt-rcr_u64_amd.bin.gz \
405 tstIEMAImplDataInt-rcr_u64_intel.bin.gz \
406 tstIEMAImplDataInt-rol_u8_amd.bin.gz \
407 tstIEMAImplDataInt-rol_u8_intel.bin.gz \
408 tstIEMAImplDataInt-rol_u16_amd.bin.gz \
409 tstIEMAImplDataInt-rol_u16_intel.bin.gz \
410 tstIEMAImplDataInt-rol_u32_amd.bin.gz \
411 tstIEMAImplDataInt-rol_u32_intel.bin.gz \
412 tstIEMAImplDataInt-rol_u64_amd.bin.gz \
413 tstIEMAImplDataInt-rol_u64_intel.bin.gz \
414 tstIEMAImplDataInt-ror_u8_amd.bin.gz \
415 tstIEMAImplDataInt-ror_u8_intel.bin.gz \
416 tstIEMAImplDataInt-ror_u16_amd.bin.gz \
417 tstIEMAImplDataInt-ror_u16_intel.bin.gz \
418 tstIEMAImplDataInt-ror_u32_amd.bin.gz \
419 tstIEMAImplDataInt-ror_u32_intel.bin.gz \
420 tstIEMAImplDataInt-ror_u64_amd.bin.gz \
421 tstIEMAImplDataInt-ror_u64_intel.bin.gz \
422 tstIEMAImplDataInt-sar_u8_amd.bin.gz \
423 tstIEMAImplDataInt-sar_u8_intel.bin.gz \
424 tstIEMAImplDataInt-sar_u16_amd.bin.gz \
425 tstIEMAImplDataInt-sar_u16_intel.bin.gz \
426 tstIEMAImplDataInt-sar_u32_amd.bin.gz \
427 tstIEMAImplDataInt-sar_u32_intel.bin.gz \
428 tstIEMAImplDataInt-sar_u64_amd.bin.gz \
429 tstIEMAImplDataInt-sar_u64_intel.bin.gz \
430 tstIEMAImplDataInt-sbb_u8.bin.gz \
431 tstIEMAImplDataInt-sbb_u8_locked.bin.gz \
432 tstIEMAImplDataInt-sbb_u16.bin.gz \
433 tstIEMAImplDataInt-sbb_u16_locked.bin.gz \
434 tstIEMAImplDataInt-sbb_u32.bin.gz \
435 tstIEMAImplDataInt-sbb_u32_locked.bin.gz \
436 tstIEMAImplDataInt-sbb_u64.bin.gz \
437 tstIEMAImplDataInt-sbb_u64_locked.bin.gz \
438 tstIEMAImplDataInt-shld_u16_amd.bin.gz \
439 tstIEMAImplDataInt-shld_u16_intel.bin.gz \
440 tstIEMAImplDataInt-shld_u32_amd.bin.gz \
441 tstIEMAImplDataInt-shld_u32_intel.bin.gz \
442 tstIEMAImplDataInt-shld_u64_amd.bin.gz \
443 tstIEMAImplDataInt-shld_u64_intel.bin.gz \
444 tstIEMAImplDataInt-shl_u8_amd.bin.gz \
445 tstIEMAImplDataInt-shl_u8_intel.bin.gz \
446 tstIEMAImplDataInt-shl_u16_amd.bin.gz \
447 tstIEMAImplDataInt-shl_u16_intel.bin.gz \
448 tstIEMAImplDataInt-shl_u32_amd.bin.gz \
449 tstIEMAImplDataInt-shl_u32_intel.bin.gz \
450 tstIEMAImplDataInt-shl_u64_amd.bin.gz \
451 tstIEMAImplDataInt-shl_u64_intel.bin.gz \
452 tstIEMAImplDataInt-shrd_u16_amd.bin.gz \
453 tstIEMAImplDataInt-shrd_u16_intel.bin.gz \
454 tstIEMAImplDataInt-shrd_u32_amd.bin.gz \
455 tstIEMAImplDataInt-shrd_u32_intel.bin.gz \
456 tstIEMAImplDataInt-shrd_u64_amd.bin.gz \
457 tstIEMAImplDataInt-shrd_u64_intel.bin.gz \
458 tstIEMAImplDataInt-shr_u8_amd.bin.gz \
459 tstIEMAImplDataInt-shr_u8_intel.bin.gz \
460 tstIEMAImplDataInt-shr_u16_amd.bin.gz \
461 tstIEMAImplDataInt-shr_u16_intel.bin.gz \
462 tstIEMAImplDataInt-shr_u32_amd.bin.gz \
463 tstIEMAImplDataInt-shr_u32_intel.bin.gz \
464 tstIEMAImplDataInt-shr_u64_amd.bin.gz \
465 tstIEMAImplDataInt-shr_u64_intel.bin.gz \
466 tstIEMAImplDataInt-sub_u8.bin.gz \
467 tstIEMAImplDataInt-sub_u8_locked.bin.gz \
468 tstIEMAImplDataInt-sub_u16.bin.gz \
469 tstIEMAImplDataInt-sub_u16_locked.bin.gz \
470 tstIEMAImplDataInt-sub_u32.bin.gz \
471 tstIEMAImplDataInt-sub_u32_locked.bin.gz \
472 tstIEMAImplDataInt-sub_u64.bin.gz \
473 tstIEMAImplDataInt-sub_u64_locked.bin.gz \
474 tstIEMAImplDataInt-test_u8.bin.gz \
475 tstIEMAImplDataInt-test_u16.bin.gz \
476 tstIEMAImplDataInt-test_u32.bin.gz \
477 tstIEMAImplDataInt-test_u64.bin.gz \
478 tstIEMAImplDataInt-xor_u8.bin.gz \
479 tstIEMAImplDataInt-xor_u8_locked.bin.gz \
480 tstIEMAImplDataInt-xor_u16.bin.gz \
481 tstIEMAImplDataInt-xor_u16_locked.bin.gz \
482 tstIEMAImplDataInt-xor_u32.bin.gz \
483 tstIEMAImplDataInt-xor_u32_locked.bin.gz \
484 tstIEMAImplDataInt-xor_u64.bin.gz \
485 tstIEMAImplDataInt-xor_u64_locked.bin.gz \
486 \
487 tstIEMAImplDataFpuBinary1-fadd_r80_by_r80.bin.gz \
488 tstIEMAImplDataFpuBinary1-fcomi_r80_by_r80.bin.gz \
489 tstIEMAImplDataFpuBinary1-fcom_r80_by_r80.bin.gz \
490 tstIEMAImplDataFpuBinary1-fdivr_r80_by_r80.bin.gz \
491 tstIEMAImplDataFpuBinary1-fdiv_r80_by_r80.bin.gz \
492 tstIEMAImplDataFpuBinary1-fmul_r80_by_r80.bin.gz \
493 tstIEMAImplDataFpuBinary1-fpatan_r80_by_r80_amd.bin.gz \
494 tstIEMAImplDataFpuBinary1-fpatan_r80_by_r80_intel.bin.gz \
495 tstIEMAImplDataFpuBinary1-fprem1_r80_by_r80.bin.gz \
496 tstIEMAImplDataFpuBinary1-fprem_r80_by_r80.bin.gz \
497 tstIEMAImplDataFpuBinary1-fscale_r80_by_r80.bin.gz \
498 tstIEMAImplDataFpuBinary1-fsubr_r80_by_r80.bin.gz \
499 tstIEMAImplDataFpuBinary1-fsub_r80_by_r80.bin.gz \
500 tstIEMAImplDataFpuBinary1-fucomi_r80_by_r80.bin.gz \
501 tstIEMAImplDataFpuBinary1-fucom_r80_by_r80.bin.gz \
502 tstIEMAImplDataFpuBinary1-fyl2xp1_r80_by_r80_amd.bin.gz \
503 tstIEMAImplDataFpuBinary1-fyl2xp1_r80_by_r80_intel.bin.gz \
504 tstIEMAImplDataFpuBinary1-fyl2x_r80_by_r80_amd.bin.gz \
505 tstIEMAImplDataFpuBinary1-fyl2x_r80_by_r80_intel.bin.gz \
506 tstIEMAImplDataFpuBinary2-fadd_r80_by_r32.bin.gz \
507 tstIEMAImplDataFpuBinary2-fadd_r80_by_r64.bin.gz \
508 tstIEMAImplDataFpuBinary2-fcom_r80_by_r32.bin.gz \
509 tstIEMAImplDataFpuBinary2-fcom_r80_by_r64.bin.gz \
510 tstIEMAImplDataFpuBinary2-fdivr_r80_by_r32.bin.gz \
511 tstIEMAImplDataFpuBinary2-fdivr_r80_by_r64.bin.gz \
512 tstIEMAImplDataFpuBinary2-fdiv_r80_by_r32.bin.gz \
513 tstIEMAImplDataFpuBinary2-fdiv_r80_by_r64.bin.gz \
514 tstIEMAImplDataFpuBinary2-fiadd_r80_by_i16.bin.gz \
515 tstIEMAImplDataFpuBinary2-fiadd_r80_by_i32.bin.gz \
516 tstIEMAImplDataFpuBinary2-ficom_r80_by_i16.bin.gz \
517 tstIEMAImplDataFpuBinary2-ficom_r80_by_i32.bin.gz \
518 tstIEMAImplDataFpuBinary2-fidivr_r80_by_i16.bin.gz \
519 tstIEMAImplDataFpuBinary2-fidivr_r80_by_i32.bin.gz \
520 tstIEMAImplDataFpuBinary2-fidiv_r80_by_i16.bin.gz \
521 tstIEMAImplDataFpuBinary2-fidiv_r80_by_i32.bin.gz \
522 tstIEMAImplDataFpuBinary2-fimul_r80_by_i16.bin.gz \
523 tstIEMAImplDataFpuBinary2-fimul_r80_by_i32.bin.gz \
524 tstIEMAImplDataFpuBinary2-fisubr_r80_by_i16.bin.gz \
525 tstIEMAImplDataFpuBinary2-fisubr_r80_by_i32.bin.gz \
526 tstIEMAImplDataFpuBinary2-fisub_r80_by_i16.bin.gz \
527 tstIEMAImplDataFpuBinary2-fisub_r80_by_i32.bin.gz \
528 tstIEMAImplDataFpuBinary2-fmul_r80_by_r32.bin.gz \
529 tstIEMAImplDataFpuBinary2-fmul_r80_by_r64.bin.gz \
530 tstIEMAImplDataFpuBinary2-fsubr_r80_by_r32.bin.gz \
531 tstIEMAImplDataFpuBinary2-fsubr_r80_by_r64.bin.gz \
532 tstIEMAImplDataFpuBinary2-fsub_r80_by_r32.bin.gz \
533 tstIEMAImplDataFpuBinary2-fsub_r80_by_r64.bin.gz \
534 tstIEMAImplDataFpuLdSt-fild_r80_from_i16.bin.gz \
535 tstIEMAImplDataFpuLdSt-fild_r80_from_i32.bin.gz \
536 tstIEMAImplDataFpuLdSt-fild_r80_from_i64.bin.gz \
537 tstIEMAImplDataFpuLdSt-fistt_r80_to_i16_amd.bin.gz \
538 tstIEMAImplDataFpuLdSt-fistt_r80_to_i16_intel.bin.gz \
539 tstIEMAImplDataFpuLdSt-fistt_r80_to_i32.bin.gz \
540 tstIEMAImplDataFpuLdSt-fistt_r80_to_i64.bin.gz \
541 tstIEMAImplDataFpuLdSt-fist_r80_to_i16.bin.gz \
542 tstIEMAImplDataFpuLdSt-fist_r80_to_i32.bin.gz \
543 tstIEMAImplDataFpuLdSt-fist_r80_to_i64.bin.gz \
544 tstIEMAImplDataFpuLdSt-fld1.bin.gz \
545 tstIEMAImplDataFpuLdSt-fldl2e.bin.gz \
546 tstIEMAImplDataFpuLdSt-fldl2t.bin.gz \
547 tstIEMAImplDataFpuLdSt-fldlg2.bin.gz \
548 tstIEMAImplDataFpuLdSt-fldln2.bin.gz \
549 tstIEMAImplDataFpuLdSt-fldpi.bin.gz \
550 tstIEMAImplDataFpuLdSt-fldz.bin.gz \
551 tstIEMAImplDataFpuLdSt-fld_r80_from_d80.bin.gz \
552 tstIEMAImplDataFpuLdSt-fld_r80_from_r32.bin.gz \
553 tstIEMAImplDataFpuLdSt-fld_r80_from_r64.bin.gz \
554 tstIEMAImplDataFpuLdSt-fld_r80_from_r80.bin.gz \
555 tstIEMAImplDataFpuLdSt-fst_r80_to_d80.bin.gz \
556 tstIEMAImplDataFpuLdSt-fst_r80_to_r32.bin.gz \
557 tstIEMAImplDataFpuLdSt-fst_r80_to_r64.bin.gz \
558 tstIEMAImplDataFpuLdSt-fst_r80_to_r80.bin.gz \
559 tstIEMAImplDataFpuOther-f2xm1_r80_amd.bin.gz \
560 tstIEMAImplDataFpuOther-f2xm1_r80_intel.bin.gz \
561 tstIEMAImplDataFpuOther-fabs_r80.bin.gz \
562 tstIEMAImplDataFpuOther-fchs_r80.bin.gz \
563 tstIEMAImplDataFpuOther-fcos_r80_amd.bin.gz \
564 tstIEMAImplDataFpuOther-fcos_r80_intel.bin.gz \
565 tstIEMAImplDataFpuOther-fptan_r80_r80_amd.bin.gz \
566 tstIEMAImplDataFpuOther-fptan_r80_r80_intel.bin.gz \
567 tstIEMAImplDataFpuOther-frndint_r80.bin.gz \
568 tstIEMAImplDataFpuOther-fsincos_r80_r80_amd.bin.gz \
569 tstIEMAImplDataFpuOther-fsincos_r80_r80_intel.bin.gz \
570 tstIEMAImplDataFpuOther-fsin_r80_amd.bin.gz \
571 tstIEMAImplDataFpuOther-fsin_r80_intel.bin.gz \
572 tstIEMAImplDataFpuOther-fsqrt_r80.bin.gz \
573 tstIEMAImplDataFpuOther-ftst_r80.bin.gz \
574 tstIEMAImplDataFpuOther-fxam_r80.bin.gz \
575 tstIEMAImplDataFpuOther-fxtract_r80_r80.bin.gz \
576 \
577 tstIEMAImplDataSseBinary-addps_u128.bin.gz \
578 tstIEMAImplDataSseBinary-mulps_u128.bin.gz \
579 tstIEMAImplDataSseBinary-subps_u128.bin.gz \
580 tstIEMAImplDataSseBinary-minps_u128.bin.gz \
581 tstIEMAImplDataSseBinary-divps_u128.bin.gz \
582 tstIEMAImplDataSseBinary-maxps_u128.bin.gz \
583 tstIEMAImplDataSseBinary-haddps_u128.bin.gz \
584 tstIEMAImplDataSseBinary-hsubps_u128.bin.gz \
585 tstIEMAImplDataSseBinary-sqrtps_u128.bin.gz \
586 tstIEMAImplDataSseBinary-addsubps_u128.bin.gz \
587 tstIEMAImplDataSseBinary-cvtps2pd_u128.bin.gz \
588 tstIEMAImplDataSseBinary-addpd_u128.bin.gz \
589 tstIEMAImplDataSseBinary-mulpd_u128.bin.gz \
590 tstIEMAImplDataSseBinary-subpd_u128.bin.gz \
591 tstIEMAImplDataSseBinary-minpd_u128.bin.gz \
592 tstIEMAImplDataSseBinary-divpd_u128.bin.gz \
593 tstIEMAImplDataSseBinary-maxpd_u128.bin.gz \
594 tstIEMAImplDataSseBinary-haddpd_u128.bin.gz \
595 tstIEMAImplDataSseBinary-hsubpd_u128.bin.gz \
596 tstIEMAImplDataSseBinary-sqrtpd_u128.bin.gz \
597 tstIEMAImplDataSseBinary-addsubpd_u128.bin.gz \
598 tstIEMAImplDataSseBinary-cvtpd2ps_u128.bin.gz \
599 tstIEMAImplDataSseBinary-addss_u128_r32.bin.gz \
600 tstIEMAImplDataSseBinary-addsd_u128_r64.bin.gz \
601 tstIEMAImplDataSseBinary-mulss_u128_r32.bin.gz \
602 tstIEMAImplDataSseBinary-mulsd_u128_r64.bin.gz \
603 tstIEMAImplDataSseBinary-subss_u128_r32.bin.gz \
604 tstIEMAImplDataSseBinary-subsd_u128_r64.bin.gz \
605 tstIEMAImplDataSseBinary-minss_u128_r32.bin.gz \
606 tstIEMAImplDataSseBinary-minsd_u128_r64.bin.gz \
607 tstIEMAImplDataSseBinary-divss_u128_r32.bin.gz \
608 tstIEMAImplDataSseBinary-divsd_u128_r64.bin.gz \
609 tstIEMAImplDataSseBinary-maxss_u128_r32.bin.gz \
610 tstIEMAImplDataSseBinary-maxsd_u128_r64.bin.gz \
611 tstIEMAImplDataSseBinary-cvtss2sd_u128_r32.bin.gz \
612 tstIEMAImplDataSseBinary-cvtsd2ss_u128_r64.bin.gz \
613 tstIEMAImplDataSseBinary-sqrtss_u128_r32.bin.gz \
614 tstIEMAImplDataSseBinary-sqrtsd_u128_r64.bin.gz \
615 tstIEMAImplDataSseBinary-cvttsd2si_i32_r64.bin.gz \
616 tstIEMAImplDataSseBinary-cvtsd2si_i32_r64.bin.gz \
617 tstIEMAImplDataSseBinary-cvttsd2si_i64_r64.bin.gz \
618 tstIEMAImplDataSseBinary-cvtsd2si_i64_r64.bin.gz \
619 tstIEMAImplDataSseBinary-cvttss2si_i32_r32.bin.gz \
620 tstIEMAImplDataSseBinary-cvtss2si_i32_r32.bin.gz \
621 tstIEMAImplDataSseBinary-cvttss2si_i64_r32.bin.gz \
622 tstIEMAImplDataSseBinary-cvtss2si_i64_r32.bin.gz \
623 tstIEMAImplDataSseBinary-cvtsi2ss_r32_i32.bin.gz \
624 tstIEMAImplDataSseBinary-cvtsi2ss_r32_i64.bin.gz \
625 tstIEMAImplDataSseBinary-cvtsi2sd_r64_i32.bin.gz \
626 tstIEMAImplDataSseBinary-cvtsi2sd_r64_i64.bin.gz \
627 tstIEMAImplDataSseCompare-ucomiss_u128.bin.gz \
628 tstIEMAImplDataSseCompare-vucomiss_u128.bin.gz \
629 tstIEMAImplDataSseCompare-comiss_u128.bin.gz \
630 tstIEMAImplDataSseCompare-vcomiss_u128.bin.gz \
631 tstIEMAImplDataSseCompare-ucomisd_u128.bin.gz \
632 tstIEMAImplDataSseCompare-vucomisd_u128.bin.gz \
633 tstIEMAImplDataSseCompare-comisd_u128.bin.gz \
634 tstIEMAImplDataSseCompare-vcomisd_u128.bin.gz \
635 tstIEMAImplDataSseCompare-cmpps_u128.bin.gz \
636 tstIEMAImplDataSseCompare-cmpss_u128.bin.gz \
637 tstIEMAImplDataSseCompare-cmppd_u128.bin.gz \
638 tstIEMAImplDataSseCompare-cmpsd_u128.bin.gz \
639 tstIEMAImplDataSseConvert-cvtdq2ps_u128.bin.gz \
640 tstIEMAImplDataSseConvert-cvtps2dq_u128.bin.gz \
641 tstIEMAImplDataSseConvert-cvttps2dq_u128.bin.gz \
642 tstIEMAImplDataSseConvert-cvtdq2pd_u128.bin.gz \
643 tstIEMAImplDataSseConvert-cvtpd2dq_u128.bin.gz \
644 tstIEMAImplDataSseConvert-cvttpd2dq_u128.bin.gz \
645 tstIEMAImplDataSseConvert-cvtpd2pi_u128.bin.gz \
646 tstIEMAImplDataSseConvert-cvttpd2pi_u128.bin.gz \
647 tstIEMAImplDataSseConvert-cvtpi2ps_u128.bin.gz \
648 tstIEMAImplDataSseConvert-cvtpi2pd_u128.bin.gz \
649 tstIEMAImplDataSseConvert-cvtps2pi_u128.bin.gz \
650 tstIEMAImplDataSseConvert-cvttps2pi_u128.bin.gz \
651 tstIEMAImplDataSsePcmpxstrx-pcmpistri_u128.bin.gz \
652 tstIEMAImplDataSsePcmpxstrx-pcmpistrm_u128.bin.gz \
653 tstIEMAImplDataSsePcmpxstrx-pcmpestri_u128.bin.gz \
654 tstIEMAImplDataSsePcmpxstrx-pcmpestrm_u128.bin.gz
655
656tstIEMAImpl_TEMPLATE = VBoxR3TstExe
657tstIEMAImpl_DEFS = VBOX_VMM_TARGET_X86 $(VMM_COMMON_DEFS) IEM_WITHOUT_ASSEMBLY IEM_WITHOUT_INSTRUCTION_STATS
658tstIEMAImpl_SDKS = VBoxSoftFloatR3Shared
659tstIEMAImpl_INCS = ../include .
660tstIEMAImpl_SOURCES = \
661 tstIEMAImpl.cpp \
662 ../VMMAll/IEMAllAImplC.cpp \
663 $(tstIEMAImpl_CLEAN)
664tstIEMAImpl_SOURCES.x86 += tstIEMAImplDataSseBinary.asm
665tstIEMAImpl_SOURCES.amd64 += tstIEMAImplDataSseBinary.asm
666tstIEMAImplDataSseBinary.asm_DEPS = \
667 $(TSTIEMAIMPL_TEST_DATA_DEPS)
668
669tstIEMAImpl_SOURCES.arm64 = \
670 tstIEMAImplDataSseBinary.S \
671 ../VMMAll/IEMAllAImpl-arm64.S
672tstIEMAImplDataSseBinary.S_DEPS = \
673 $(TSTIEMAIMPL_TEST_DATA_DEPS)
674$(call KB_FN_DO_PASS0_ON_TARGET,tstIEMAImpl)
675
676# This variant mainly for generating data.
677tstIEMAImplAsm_TEMPLATE := VBoxR3TstExe
678tstIEMAImplAsm_SDKS := VBoxSoftFloatR3Shared
679tstIEMAImplAsm_DEFS = VBOX_VMM_TARGET_X86 $(VMM_COMMON_DEFS) IEM_WITH_ASSEMBLY IEM_WITHOUT_INSTRUCTION_STATS TSTIEMAIMPL_WITH_GENERATOR
680tstIEMAImplAsm_ASFLAGS.amd64 := -Werror
681tstIEMAImplAsm_ASFLAGS.x86 := -Werror
682tstIEMAImplAsm_INCS := ../include .
683tstIEMAImplAsm_SOURCES = \
684 tstIEMAImpl.cpp \
685 ../VMMAll/IEMAllAImpl.asm \
686 ../VMMAll/IEMAllAImplC.cpp \
687 $(tstIEMAImpl_CLEAN)
688tstIEMAImplAsm_SOURCES.x86 += tstIEMAImplDataSseBinary.asm
689tstIEMAImplAsm_SOURCES.amd64 += tstIEMAImplDataSseBinary.asm
690tstIEMAImplDataSseBinary.asm_DEPS = \
691 $(TSTIEMAIMPL_TEST_DATA_DEPS)
692
693tstIEMAImplAsm_SOURCES.arm64 += tstIEMAImplDataSseBinary.S
694tstIEMAImplDataSseBinary.S_DEPS = \
695 $(TSTIEMAIMPL_TEST_DATA_DEPS)
696
697
698#
699# Testcase for checking the repurposing of the IEM instruction code.
700#
701tstIEMCheckMc_TEMPLATE = VBoxR3TstExe
702tstIEMCheckMc_SOURCES = tstIEMCheckMc.cpp
703tstIEMCheckMc_DEFS = VBOX_VMM_TARGET_X86 $(VMM_COMMON_DEFS) IEM_WITHOUT_INSTRUCTION_STATS
704tstIEMCheckMc_LIBS = $(LIB_RUNTIME)
705ifeq ($(KBUILD_TARGET),win)
706 tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -wd4189 # local variable is initialized but not used.
707else
708 tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -Wno-unused-value -Wno-unused-variable -Wno-return-type
709endif
710
711#
712# Testcase for profiling the native recompiler.
713#
714tstIEMN8veProfiling_TEMPLATE := VBoxR3Exe
715tstIEMN8veProfiling_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
716tstIEMN8veProfiling_SOURCES := tstIEMN8veProfiling.cpp
717tstIEMN8veProfiling_LIBS = $(LIB_VMM) $(LIB_RUNTIME)
718
719#
720# Saved state manager testcase.
721#
722tstSSM_TEMPLATE = VBoxR3TstExe
723tstSSM_INCS = $(VBOX_PATH_VMM_SRC)/include
724tstSSM_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
725tstSSM_SOURCES = tstSSM.cpp
726tstSSM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
727
728#
729# VMM configuration manager tests.
730#
731if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
732 tstCFGMHardened_TEMPLATE = VBoxR3HardenedTstExe
733 tstCFGMHardened_NAME = tstCFGM
734 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
735 tstCFGMHardened_DEFS = PROGRAM_NAME_STR="tstCFGM"
736 else
737 tstCFGMHardened_DEFS = PROGRAM_NAME_STR=\"tstCFGM\"
738 endif
739 tstCFGMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
740 tstCFGM_TEMPLATE = VBoxR3HardenedTstDll
741else
742 tstCFGM_TEMPLATE = VBoxR3SignedTstExe
743endif
744tstCFGM_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
745tstCFGM_SOURCES = tstCFGM.cpp
746tstCFGM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
747
748#
749# Comparing some compression algorithms considered for SSM usage.
750#
751tstCompressionBenchmark_TEMPLATE = VBoxR3TstExe
752tstCompressionBenchmark_SOURCES = tstCompressionBenchmark.cpp
753
754#
755# Two testcases for checking the ring-0 setjmp/longjmp code.
756#
757tstVMMR0CallHost-1_TEMPLATE = VBoxR3TstExe
758tstVMMR0CallHost-1_INCS = $(VBOX_PATH_VMM_SRC)/include
759tstVMMR0CallHost-1_SOURCES = \
760 tstVMMR0CallHost-1.cpp
761tstVMMR0CallHost-1_SOURCES.amd64 = \
762 $(VBOX_PATH_VMM_SRC)/VMMR0/VMMR0JmpA-amd64.asm
763tstVMMR0CallHost-1_SOURCES.x86 = \
764 $(VBOX_PATH_VMM_SRC)/VMMR0/VMMR0JmpA-x86.asm
765
766
767#
768# For testing the VM request queue code.
769#
770if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
771 tstVMREQHardened_TEMPLATE = VBoxR3HardenedExe
772 tstVMREQHardened_NAME = tstVMREQ
773 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
774 tstVMREQHardened_DEFS = PROGRAM_NAME_STR="tstVMREQ"
775 else
776 tstVMREQHardened_DEFS = PROGRAM_NAME_STR=\"tstVMREQ\"
777 endif
778 tstVMREQHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
779 tstVMREQ_TEMPLATE = VBoxR3Dll
780else
781 tstVMREQ_TEMPLATE = VBoxR3SignedExe
782endif
783tstVMREQ_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
784tstVMREQ_SOURCES = tstVMREQ.cpp
785tstVMREQ_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
786
787#
788# Tool for reanimate things like OS/2 dumps.
789#
790if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
791 tstAnimateHardened_TEMPLATE = VBoxR3HardenedExe
792 tstAnimateHardened_NAME = tstAnimate
793 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
794 tstAnimateHardened_DEFS = PROGRAM_NAME_STR="tstAnimate"
795 else
796 tstAnimateHardened_DEFS = PROGRAM_NAME_STR=\"tstAnimate\"
797 endif
798 tstAnimateHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
799 tstAnimate_TEMPLATE = VBoxR3Dll
800else
801 tstAnimate_TEMPLATE = VBoxR3SignedExe
802endif
803tstAnimate_DEFS = VBOX_VMM_TARGET_X86 $(VMM_COMMON_DEFS)
804tstAnimate_SOURCES = tstAnimate.cpp
805tstAnimate_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
806
807tstX86-1_TEMPLATE = VBoxR3TstExe
808tstX86-1_SOURCES = tstX86-1.cpp tstX86-1A.asm
809tstX86-1_LIBS = $(LIB_RUNTIME)
810tstX86-1_LDFLAGS.linux = $(VBOX_GCC_no-pie)
811
812tstX86-FpuSaveRestore_TEMPLATE = VBoxR3TstExe
813tstX86-FpuSaveRestore_SOURCES = tstX86-FpuSaveRestore.cpp tstX86-FpuSaveRestoreA.asm
814tstX86-FpuSaveRestore_LIBS = $(LIB_RUNTIME)
815
816ifdef VBOX_WITH_RAW_MODE
817
818 #
819 # Raw-mode VMM testcase.
820 #
821 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
822 tstVMMHardened_TEMPLATE = VBoxR3HardenedExe
823 tstVMMHardened_NAME = tstVMM
824 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
825 tstVMMHardened_DEFS = PROGRAM_NAME_STR="tstVMM"
826 else
827 tstVMMHardened_DEFS = PROGRAM_NAME_STR=\"tstVMM\"
828 endif
829 tstVMMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
830 tstVMM_TEMPLATE = VBoxR3Dll
831 else
832 tstVMM_TEMPLATE = VBoxR3SignedExe
833 endif
834 tstVMM_SOURCES = tstVMM.cpp
835 tstVMM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
836
837 #
838 # HM VMM testcase.
839 #
840 tstVMM-HM_TEMPLATE = VBoxR3SignedExe
841 tstVMM-HM_SOURCES = tstVMM-HM.cpp
842 tstVMM-HM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
843
844 #
845 # VMM host process fork test case (memory ++).
846 #
847 tstVMMFork_TEMPLATE = VBoxR3SignedExe
848 tstVMMFork_SOURCES = tstVMMFork.cpp
849 tstVMMFork_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
850
851 #
852 # Raw-mode micro benchmark.
853 #
854 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
855 tstMicroHardened_TEMPLATE = VBoxR3HardenedExe
856 tstMicroHardened_NAME = tstMicro
857 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
858 tstMicroHardened_DEFS = PROGRAM_NAME_STR="tstMicro"
859 else
860 tstMicroHardened_DEFS = PROGRAM_NAME_STR=\"tstMicro\"
861 endif
862 tstMicroHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
863 tstMicro_TEMPLATE = VBoxR3Dll
864 else
865 tstMicro_TEMPLATE = VBoxR3SignedExe
866 endif
867 tstMicro_SOURCES = tstMicro.cpp
868 tstMicro_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
869 tstMicro_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
870
871 tstMicroRC_TEMPLATE = VBoxRc
872 tstMicroRC_SOURCES = tstMicroRC.cpp tstMicroRCA.asm
873 tstMicroRC_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,)
874 tstMicroRC_INCS = $(VBOX_PATH_VMM_SRC)/testcase
875 ifeq ($(VBOX_LDR_FMT32),pe)
876 tstMicroRC_LDFLAGS = -Entry:tstMicroRC
877 endif
878 tstMicroRC_SYSSUFF = .gc
879 tstMicroRC_LIBS = \
880 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
881 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
882 ifeq ($(filter-out pe lx,$(VBOX_LDR_FMT32)),)
883 tstMicroRC_LIBS += \
884 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
885 $(LIB_VMMRC)
886 endif
887 tstMicroRC_SOURCES.win = tstMicroRC.def
888
889endif # VBOX_WITH_RAW_MODE
890
891
892if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)
893 #
894 # Special NEM host testcase.
895 #
896 if ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "darwin.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \
897 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "linux.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \
898 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "win.amd64" && defined(VBOX_WITH_NATIVE_NEM))
899 PROGRAMS += NemRawBench-1
900 NemRawBench-1_TEMPLATE = VBoxR3Static
901 NemRawBench-1_SOURCES = NemRawBench-1.cpp
902 NemRawBench-1_BLD_TYPE = release
903 NemRawBench-1_INCS.win = \
904 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/um \
905 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/shared
906 NemRawBench-1_CXXFLAGS.darwin = \
907 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
908 #NemRawBench-1_LDFLAGS.darwin = \
909# -F/System/Library/Frameworks \
910# -framework Hypervisor
911 NemRawBench-1_LDFLAGS.darwin = \
912 /System/Library/Frameworks/Hypervisor.framework/Hypervisor
913 endif
914endif
915
916#
917# PDM Queue tests.
918#
919tstPDMQueue_TEMPLATE := VBoxR3Exe
920tstPDMQueue_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
921tstPDMQueue_SOURCES := tstPDMQueue.cpp
922tstPDMQueue_LIBS := $(LIB_VMM) $(LIB_RUNTIME)
923
924
925ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
926 #
927 # PDM asynchronous completation test.
928 #
929 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
930 tstPDMAsyncCompletionHardened_TEMPLATE = VBoxR3HardenedExe
931 tstPDMAsyncCompletionHardened_NAME = tstPDMAsyncCompletion
932 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
933 tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletion"
934 else
935 tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletion\"
936 endif
937 tstPDMAsyncCompletionHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
938 tstPDMAsyncCompletion_TEMPLATE = VBoxR3Dll
939 else
940 tstPDMAsyncCompletion_TEMPLATE = VBoxR3SignedExe
941 endif
942 tstPDMAsyncCompletion_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
943 tstPDMAsyncCompletion_INCS = $(VBOX_PATH_VMM_SRC)/include
944 tstPDMAsyncCompletion_SOURCES = tstPDMAsyncCompletion.cpp
945 tstPDMAsyncCompletion_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
946
947 #
948 # PDM asynchronous completation stress test.
949 #
950 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
951 tstPDMAsyncCompletionStressHardened_TEMPLATE = VBoxR3HardenedExe
952 tstPDMAsyncCompletionStressHardened_NAME = tstPDMAsyncCompletionStress
953 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
954 tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletionStress"
955 else
956 tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletionStress\"
957 endif
958 tstPDMAsyncCompletionStressHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
959 tstPDMAsyncCompletionStress_TEMPLATE = VBoxR3Dll
960 else
961 tstPDMAsyncCompletionStress_TEMPLATE = VBoxR3SignedExe
962 endif
963 tstPDMAsyncCompletionStress_DEFS = VBOX_VMM_TARGET_AGNOSTIC $(VMM_COMMON_DEFS)
964 tstPDMAsyncCompletionStress_INCS = $(VBOX_PATH_VMM_SRC)/include
965 tstPDMAsyncCompletionStress_SOURCES = tstPDMAsyncCompletionStress.cpp
966 tstPDMAsyncCompletionStress_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)
967endif
968
969ifndef VBOX_ONLY_EXTPACKS
970 PROGRAMS += tstSSM-2
971 tstSSM-2_TEMPLATE = VBoxR3TstExe
972 tstSSM-2_DEFS = VBOX_VMM_TARGET_AGNOSTIC IN_VMM_STATIC
973 tstSSM-2_SOURCES = tstSSM-2.cpp
974 tstSSM-2_LIBS = $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB)
975endif
976
977#
978# Generate VM structure tests.
979#
980if !defined(VBOX_ONLY_EXTPACKS) \
981 && ( defined(VBOX_WITH_DTRACE_R3) \
982 || defined(VBOX_WITH_DTRACE_R0) \
983 || defined(VBOX_WITH_DTRACE_RC))
984 tstVMStructDTrace_TEMPLATE = VBoxR3AutoTest
985 tstVMStructDTrace_DEFS = VBOX_VMM_TARGET_AGNOSTIC VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS) IEM_WITHOUT_INSTRUCTION_STATS
986 ifdef VBOX_WITH_RAW_MODE
987 tstVMStructDTrace_DEFS += VBOX_WITH_RAW_MODE
988 endif
989 tstVMStructDTrace_INCS = \
990 $(VBOX_PATH_VMM_SRC)/include \
991 $(VBOX_PATH_VMM_SRC)/PATM \
992 $(VBOX_VMM_TESTCASE_OUT_DIR)
993 tstVMStructDTrace_SOURCES = tstVMStructDTrace.cpp
994 ifdef VBOX_WITH_R0_LOGGING
995 tstVMStructDTrace_DEFS += VBOX_WITH_R0_LOGGING
996 endif
997
998
999 VMMLibDTraceStructTest_INST = $(VBOX_INST_DTRACE_TST)$(KBUILD_TARGET_ARCH)/
1000 VMMLibDTraceStructTest_SOURCES = \
1001 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d
1002 VMMLibDTraceStructTest_CLEAN = \
1003 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d
1004
1005 $$(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d: \
1006 $$(tstVMStructDTrace_1_STAGE_TARGET) | $$(dir $$@)
1007 $(QUIET)$(RM) -f $@
1008 $< > $@
1009
1010endif
1011
1012
1013include $(FILE_KBUILD_SUB_FOOTER)
1014
1015
1016#
1017# Some handcrafted support targets for tstAsmStructs.
1018#
1019MY_ASA_ASM_STUFF = \
1020 $(addprefix -D, \
1021 $(DEFS) \
1022 $(DEFS.$(KBUILD_TYPE)) \
1023 $(DEFS.$(KBUILD_TARGET)) \
1024 IN_RING3 $(ARCH_BITS_DEFS) \
1025 $(DEFS.$(KBUILD_TARGET_ARCH)) \
1026 $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \
1027 VBOX_VMM_TARGET_X86 $(VMM_COMMON_DEFS) \
1028 ) \
1029 -f $(if $(eq $(KBUILD_TARGET),darwin),macho,$(if $(eq $(KBUILD_TARGET),win),coff,elf)) \
1030 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_PATH_VMM_SRC)/include $(VBOX_VMM_TESTCASE_OUT_DIR) \
1031 ,-I$(inc)/)
1032
1033# 1a. make a header file which makes all the structures+members globals.
1034$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac: \
1035 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
1036 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed \
1037 $(DEPTH)/include/iprt/asmdefs.mac \
1038 $(DEPTH)/include/VBox/vmm/cpum.mac \
1039 $(DEPTH)/include/VBox/vmm/vm.mac \
1040 $(DEPTH)/include/VBox/vmm/gvm.mac \
1041 $(DEPTH)/include/VBox/sup.mac \
1042 $(DEPTH)/include/iprt/x86.mac \
1043 $(VBOX_PATH_VMM_SRC)/include/CPUMInternal.mac \
1044 $(VBOX_PATH_VMM_SRC)/include/HMInternal.mac \
1045 $(VBOX_PATH_VMM_SRC)/include/VMMInternal.mac \
1046 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
1047 $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) \
1048 | $$(dir $$@)
1049 $(call MSG_GENERATE,tstVMStructSize,$@,$<)
1050ifndef DONT_USE_YASM
1051 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $<
1052 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed --output $@ [email protected]
1053else
1054 $(QUIET)$(TOOL_NASM_AS) -g $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $<
1055 $(VBOX_NM) [email protected] | $(SED) \
1056 -e '/[0-9a-fA-F][0-9a-fA-F]* [^a] /d' \
1057 -e 's/[0-9a-fA-F][0-9a-fA-F]* a \([^ ]*\)/global \1/' \
1058 > $@
1059endif
1060
1061# 1b. make an elf/macho object containing the offsets.
1062includedep $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep
1063$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o: \
1064 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
1065 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
1066 $(DEPTH)/include/iprt/asmdefs.mac \
1067 $(DEPTH)/include/VBox/vmm/cpum.mac \
1068 $(DEPTH)/include/VBox/vmm/hm_vmx.mac \
1069 $(DEPTH)/include/VBox/vmm/stam.mac \
1070 $(DEPTH)/include/VBox/vmm/vm.mac \
1071 $(DEPTH)/include/VBox/sup.mac \
1072 $(DEPTH)/include/iprt/x86.mac \
1073 $(VBOX_PATH_VMM_SRC)/include/CPUMInternal.mac \
1074 $(VBOX_PATH_VMM_SRC)/include/HMInternal.mac \
1075 $(VBOX_PATH_VMM_SRC)/include/VMMInternal.mac \
1076 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
1077 $$(if $$(eq $$(tstAsmStructsAsmDep_STUFF),$$(MY_ASA_ASM_STUFF)),,FORCE) \
1078 | $$(dir $$@)
1079 $(call MSG_COMPILE,tstAsmStructsasm,$<,$@,AS)
1080ifndef DONT_USE_YASM
1081 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
1082else
1083 $(QUIET)$(TOOL_NASM_AS) $(MY_ASA_ASM_STUFF) -DDO_GLOBALS -o $@ $<
1084endif
1085 %$(QUIET2)$(RM) -f -- $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep
1086 %$(QUIET2)$(APPEND) '$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o.dep' 'tstAsmStructsAsmDep_STUFF=$(MY_ASA_ASM_STUFF)'
1087
1088# 2. use nm and sed to transform this into the header we want.
1089$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o
1090 $(call MSG_GENERATE,tstVMStructSize,$@,$<)
1091 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1092ifeq ($(KBUILD_TARGET),win)
1093 $(QUIET)$(REDIRECT) -wo [email protected] -- $(TOOL_$(VBOX_VCC_TOOL)_DUMPBIN) /nologo /symbols $<
1094 $(QUIET)$(SED) \
1095 -e '/STAMPROFILEADV/d' \
1096 \
1097 -e '/^[0-9a-fA-F]\{1,\} 00[0-9a-fA-F]* ABS *notype *External *| [^.]\{1,\}\./!d' \
1098 -e 's/^[0-9a-fA-F]\{1,\} \(00[0-9a-fA-F]*\) ABS *notype *External *| \([^.]\{1,\}\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \
1099 --output [email protected] [email protected]
1100 $(QUIET)$(SED) \
1101 -e '/VM_size$$/d' \
1102 -e '/VMCPU_size$$/d' \
1103 -e '/VMMCPU_size$$/d' \
1104 -e '/SUPDRVTRACERUSRCTX32_size$$/d' \
1105 -e '/HMCPU_size$$/d' \
1106 -e '/SUPGLOBALINFOPAGE_size$$/d' \
1107 \
1108 -e '/^[0-9a-fA-F]\{1,\} 00[0-9a-fA-F]* ABS *notype *External *| [^_.]\{1,\}_size$$/!d' \
1109 -e 's/^[0-9a-fA-F]\{1,\} \(00[0-9a-fA-F]*\) ABS *notype *External *| \([^_.]\{1,\}\)_size$$/ CHECK_SIZE(\2, 0x0\1);/' \
1110 --append [email protected] [email protected]
1111else
1112 $(QUIET)$(REDIRECT) -wo [email protected] -- $(VBOX_NM) $<
1113 $(QUIET)$(SED) \
1114 -e '/STAMPROFILEADV/d' \
1115 \
1116 -e '/^\(0x\)\{0,1\}00[0-9a-fA-F]* [aAnN] [^_.]*\./!d' \
1117 -e 's/^\(0x\)\{0,1\}\(00[0-9a-fA-F]*\) [aAnN] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\3, 0x0\2, \4);/' \
1118 --output [email protected] [email protected]
1119 $(QUIET)$(SED) \
1120 -e '/VM_size$$/d' \
1121 -e '/VMCPU_size$$/d' \
1122 -e '/VMMCPU_size$$/d' \
1123 -e '/SUPDRVTRACERUSRCTX32_size$$/d' \
1124 -e '/HMCPU_size$$/d' \
1125 -e '/SUPGLOBALINFOPAGE_size$$/d' \
1126 \
1127 -e '/^\(0x\)\{0,1\}00[0-9a-fA-F]* [aAnN] [^_.]*_size$$/!d' \
1128 -e 's/^\(0x\)\{0,1\}\(00[0-9a-fA-F]*\) [aAnN] \([^_.]*\)_size/ CHECK_SIZE(\3, 0x0\2);/' \
1129 --append [email protected] [email protected]
1130endif
1131 $(QUIET)$(MV) -f [email protected] $@
1132 $(QUIET)$(RM) -f [email protected]
1133
1134# 3. run it.
1135$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run: \
1136 $$(tstAsmStructs_1_STAGE_TARGET) \
1137 $(if-expr defined(VBOX_WITH_RAW_MODE),$$(tstAsmStructsRC_1_STAGE_TARGET),)
1138 $(QUIET)$(RM) -f $@
1139 $(tstAsmStructs_1_STAGE_TARGET)
1140ifdef VBOX_WITH_RAW_MODE
1141 $(tstAsmStructsRC_1_STAGE_TARGET)
1142endif
1143 $(QUIET)$(APPEND) "$@" "done"
1144
1145
1146
1147#
1148# Run rule for tstVMStructSize.
1149#
1150
1151ifdef VBOX_WITH_RAW_MODE
1152 # 1. Manually dump selected structures and members.
1153 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h: $$(tstVMStructRC_1_STAGE_TARGET) | $$(dir $$@)
1154 $(call MSG_GENERATE,tstVMStructSize,$@)
1155 $(QUIET)$(REDIRECT) -wo $@ -- $<
1156endif # VBOX_WITH_RAW_MODE
1157
1158# 2. run it.
1159$(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run: $$(tstVMStructSize_1_STAGE_TARGET) | $$(dir $$@)
1160 $(QUIET)$(RM) -f $@
1161 $<
1162 $(QUIET)$(APPEND) "$@" "done"
1163
1164# alias for the two struct tests.
1165run-struct-tests: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
1166
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