VirtualBox

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

Last change on this file since 106692 was 106212, checked in by vboxsync, 7 weeks ago

VMM/IEM: Some machinery for saving threaded TBs and a program for loading them and running them thru the native recompiler. The program be used for profiling or to check the effect of code changes. bugref:10720

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