1 | # $Id: Makefile.kmk 67072 2017-05-25 08:26:51Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the VMM.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include sub-makefiles.
|
---|
22 | ifndef VBOX_ONLY_EXTPACKS
|
---|
23 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
24 | endif
|
---|
25 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
26 |
|
---|
27 |
|
---|
28 | # Fail on unsupported hosts.
|
---|
29 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
30 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
31 | $(error 32-bit darwin is no longer a supported VirtualBox host. Go back to 4.3 or older for 32-bit support.)
|
---|
32 | else ifeq ($(KBUILD_TARGET),solaris)
|
---|
33 | $(error 32-bit solaris is no longer a supported VirtualBox host. Go back to 4.2 or older for 32-bit support.)
|
---|
34 | endif
|
---|
35 | endif
|
---|
36 |
|
---|
37 |
|
---|
38 | #
|
---|
39 | # Globals
|
---|
40 | #
|
---|
41 |
|
---|
42 | ## DEFS variable that is picked up by all three VMM targets (R0, R3, RC).
|
---|
43 | # Can be prepended to by setting it in LocalConfig.kmk
|
---|
44 | VMM_COMMON_DEFS ?= VBOX_IN_VMM
|
---|
45 | ifdef VBOX_WITH_2ND_IEM_STEP
|
---|
46 | VMM_COMMON_DEFS += VBOX_WITH_2ND_IEM_STEP
|
---|
47 | endif
|
---|
48 | ifdef VBOX_WITH_3RD_IEM_STEP
|
---|
49 | VMM_COMMON_DEFS += VBOX_WITH_3RD_IEM_STEP
|
---|
50 | endif
|
---|
51 | ifdef VBOX_WITH_NESTED_HWVIRT
|
---|
52 | VMM_COMMON_DEFS += VBOX_WITH_NESTED_HWVIRT
|
---|
53 | endif
|
---|
54 | #ifdef VBOX_WITH_IEM
|
---|
55 | # VMM_COMMON_DEFS += VBOX_WITH_IEM
|
---|
56 | #endif
|
---|
57 | ifdef VBOX_WITH_REM
|
---|
58 | VMM_COMMON_DEFS += VBOX_WITH_REM
|
---|
59 | endif
|
---|
60 | ifdef VBOX_WITH_MULTI_CORE
|
---|
61 | VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
|
---|
62 | endif
|
---|
63 | ifdef VBOX_WITH_R0_LOGGING
|
---|
64 | VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
|
---|
65 | endif
|
---|
66 | ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
67 | VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
|
---|
68 | endif
|
---|
69 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
70 | VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
|
---|
71 | endif
|
---|
72 | ifdef VBOX_WITH_DTRACE_RC
|
---|
73 | VMM_COMMON_DEFS += VBOX_WITH_DTRACE_RC
|
---|
74 | endif
|
---|
75 | ifdef VBOX_WITH_SAFE_STR
|
---|
76 | VMM_COMMON_DEFS += VBOX_WITH_SAFE_STR
|
---|
77 | endif
|
---|
78 | ifdef VBOX_WITH_RAW_RING1
|
---|
79 | VMM_COMMON_DEFS += VBOX_WITH_RAW_RING1
|
---|
80 | endif
|
---|
81 | ifdef VBOX_WITH_64ON32_IDT
|
---|
82 | VMM_COMMON_DEFS += VBOX_WITH_64ON32_IDT
|
---|
83 | endif
|
---|
84 | ifdef VBOX_WITH_64ON32_CMOS_DEBUG
|
---|
85 | VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG
|
---|
86 | endif
|
---|
87 | ifdef VBOXSTRICTRC_STRICT_ENABLED
|
---|
88 | VMM_COMMON_DEFS += VBOXSTRICTRC_STRICT_ENABLED
|
---|
89 | endif
|
---|
90 | ifeq ($(KBUILD_TARGET),amd64)
|
---|
91 | VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS
|
---|
92 | endif
|
---|
93 |
|
---|
94 | # VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
|
---|
95 |
|
---|
96 | # Special IEM debug mode which compares the result with HM/REM
|
---|
97 | ifdef IEM_VERIFICATION_MODE
|
---|
98 | VMM_COMMON_DEFS += IEM_VERIFICATION_MODE IEM_VERIFICATION_MODE_FULL IEM_VERIFICATION_MODE_FULL_HM
|
---|
99 | endif
|
---|
100 |
|
---|
101 |
|
---|
102 | #
|
---|
103 | # The VMM DLL.
|
---|
104 | #
|
---|
105 | ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
|
---|
106 | DLLS += VBoxVMM
|
---|
107 | endif
|
---|
108 | VBoxVMM_TEMPLATE = VBoxR3DllNoPic
|
---|
109 | VBoxVMM_SONAME.linux = VBoxVMM.so
|
---|
110 |
|
---|
111 | VBoxVMM_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS)
|
---|
112 | ## @todo eliminate IN_GMM_R3
|
---|
113 | ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
114 | VBoxVMM_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
|
---|
115 | endif
|
---|
116 | ifdef VBOX_WITH_VUSB
|
---|
117 | VBoxVMM_DEFS += VBOX_WITH_USB
|
---|
118 | endif
|
---|
119 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
120 | VBoxVMM_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
121 | endif
|
---|
122 | ifdef VBOX_WITH_NETSHAPER
|
---|
123 | VBoxVMM_DEFS += VBOX_WITH_NETSHAPER
|
---|
124 | endif
|
---|
125 | ifdef VBOX_WITH_RAW_MODE
|
---|
126 | VBoxVMM_DEFS += VBOX_WITH_RAW_MODE VBOX_WITH_RAW_MODE_NOT_R0
|
---|
127 | endif
|
---|
128 | ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
|
---|
129 | VBoxVMM_DEFS += VMM_R0_SWITCH_STACK
|
---|
130 | endif
|
---|
131 | if "$(KBUILD_TYPE)" == "debug" && "$(USERNAME)" == "bird"
|
---|
132 | VBoxVMM_DEFS += RTMEM_WRAP_TO_EF_APIS
|
---|
133 | endif
|
---|
134 | VBoxVMM_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
135 |
|
---|
136 | VBoxVMM_INCS = \
|
---|
137 | include \
|
---|
138 | $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
|
---|
139 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs
|
---|
140 | VBoxVMM_ASINCS = .
|
---|
141 |
|
---|
142 | VBoxVMM_SOURCES = \
|
---|
143 | VBoxVMM.d \
|
---|
144 | VMMR3/APIC.cpp \
|
---|
145 | VMMR3/CFGM.cpp \
|
---|
146 | VMMR3/CPUM.cpp \
|
---|
147 | VMMR3/CPUMR3CpuId.cpp \
|
---|
148 | VMMR3/CPUMR3Db.cpp \
|
---|
149 | VMMR3/CPUMDbg.cpp \
|
---|
150 | VMMR3/DBGF.cpp \
|
---|
151 | VMMR3/DBGFAddr.cpp \
|
---|
152 | VMMR3/DBGFAddrSpace.cpp \
|
---|
153 | VMMR3/DBGFBp.cpp \
|
---|
154 | VMMR3/DBGFCoreWrite.cpp \
|
---|
155 | VMMR3/DBGFCpu.cpp \
|
---|
156 | VMMR3/DBGFDisas.cpp \
|
---|
157 | VMMR3/DBGFInfo.cpp \
|
---|
158 | VMMR3/DBGFLog.cpp \
|
---|
159 | VMMR3/DBGFMem.cpp \
|
---|
160 | VMMR3/DBGFOS.cpp \
|
---|
161 | VMMR3/DBGFR3PlugIn.cpp \
|
---|
162 | VMMR3/DBGFReg.cpp \
|
---|
163 | VMMR3/DBGFStack.cpp \
|
---|
164 | VMMR3/DBGFR3Flow.cpp \
|
---|
165 | VMMR3/DBGFR3Trace.cpp \
|
---|
166 | VMMR3/DBGFR3Type.cpp \
|
---|
167 | VMMR3/EM.cpp \
|
---|
168 | VMMR3/EMR3Dbg.cpp \
|
---|
169 | $(if $(VBOX_WITH_RAW_MODE),VMMR3/EMRaw.cpp) \
|
---|
170 | VMMR3/EMHM.cpp \
|
---|
171 | VMMR3/FTM.cpp \
|
---|
172 | VMMR3/GIM.cpp \
|
---|
173 | VMMR3/GIMHv.cpp \
|
---|
174 | VMMR3/GIMKvm.cpp \
|
---|
175 | VMMR3/GIMMinimal.cpp \
|
---|
176 | VMMR3/IEMR3.cpp \
|
---|
177 | VMMR3/IOM.cpp \
|
---|
178 | VMMR3/GMM.cpp \
|
---|
179 | VMMR3/MM.cpp \
|
---|
180 | VMMR3/MMHeap.cpp \
|
---|
181 | VMMR3/MMHyper.cpp \
|
---|
182 | VMMR3/MMPagePool.cpp \
|
---|
183 | VMMR3/MMUkHeap.cpp \
|
---|
184 | VMMR3/PDM.cpp \
|
---|
185 | VMMR3/PDMBlkCache.cpp \
|
---|
186 | VMMR3/PDMDevice.cpp \
|
---|
187 | VMMR3/PDMDevHlp.cpp \
|
---|
188 | VMMR3/PDMDevMiscHlp.cpp \
|
---|
189 | VMMR3/PDMDriver.cpp \
|
---|
190 | VMMR3/PDMLdr.cpp \
|
---|
191 | VMMR3/PDMCritSect.cpp \
|
---|
192 | VMMR3/PDMQueue.cpp \
|
---|
193 | VMMR3/PDMThread.cpp \
|
---|
194 | VMMR3/PGM.cpp \
|
---|
195 | VMMR3/PGMDbg.cpp \
|
---|
196 | VMMR3/PGMR3DbgA.asm \
|
---|
197 | VMMR3/PGMHandler.cpp \
|
---|
198 | VMMR3/PGMMap.cpp \
|
---|
199 | VMMR3/PGMPhys.cpp \
|
---|
200 | VMMR3/PGMPool.cpp \
|
---|
201 | VMMR3/PGMSavedState.cpp \
|
---|
202 | VMMR3/PGMSharedPage.cpp \
|
---|
203 | VMMR3/SELM.cpp \
|
---|
204 | VMMR3/SSM.cpp \
|
---|
205 | VMMR3/STAM.cpp \
|
---|
206 | VMMR3/TM.cpp \
|
---|
207 | VMMR3/TRPM.cpp \
|
---|
208 | VMMR3/VM.cpp \
|
---|
209 | VMMR3/VMEmt.cpp \
|
---|
210 | VMMR3/VMReq.cpp \
|
---|
211 | VMMR3/VMM.cpp \
|
---|
212 | VMMR3/VMMGuruMeditation.cpp \
|
---|
213 | VMMR3/VMMSwitcher.cpp \
|
---|
214 | VMMR3/VMMTests.cpp \
|
---|
215 | VMMR3/HM.cpp \
|
---|
216 | $(if-expr defined(VBOX_WITH_RAW_MODE), \
|
---|
217 | VMMR3/CSAM.cpp \
|
---|
218 | VMMR3/PATM.cpp \
|
---|
219 | VMMR3/PATMPatch.cpp \
|
---|
220 | VMMR3/PATMGuest.cpp \
|
---|
221 | VMMR3/PATMA.asm \
|
---|
222 | VMMR3/PATMSSM.cpp \
|
---|
223 | VMMR3/PATMR3Dbg.cpp \
|
---|
224 | ,) \
|
---|
225 | VMMAll/APICAll.cpp \
|
---|
226 | VMMAll/CPUMAllRegs.cpp \
|
---|
227 | VMMAll/CPUMAllMsrs.cpp \
|
---|
228 | VMMAll/CPUMStack.cpp \
|
---|
229 | VMMAll/DBGFAll.cpp \
|
---|
230 | VMMAll/HMAll.cpp \
|
---|
231 | VMMAll/HMSVMAll.cpp \
|
---|
232 | VMMAll/IEMAll.cpp \
|
---|
233 | VMMAll/IEMAllAImpl.asm \
|
---|
234 | VMMAll/IEMAllAImplC.cpp \
|
---|
235 | VMMAll/IOMAll.cpp \
|
---|
236 | VMMAll/IOMAllMMIO.cpp \
|
---|
237 | VMMAll/MMAll.cpp \
|
---|
238 | VMMAll/MMAllHyper.cpp \
|
---|
239 | VMMAll/MMAllPagePool.cpp \
|
---|
240 | VMMAll/PDMAll.cpp \
|
---|
241 | VMMAll/PDMAllCritSect.cpp \
|
---|
242 | VMMAll/PDMAllCritSectRw.cpp \
|
---|
243 | VMMAll/PDMAllCritSectBoth.cpp \
|
---|
244 | VMMAll/PDMAllQueue.cpp \
|
---|
245 | VMMAll/PGMAll.cpp \
|
---|
246 | VMMAll/PGMAllHandler.cpp \
|
---|
247 | VMMAll/PGMAllMap.cpp \
|
---|
248 | VMMAll/PGMAllPhys.cpp \
|
---|
249 | VMMAll/PGMAllPool.cpp \
|
---|
250 | VMMAll/SELMAll.cpp \
|
---|
251 | VMMAll/EMAll.cpp \
|
---|
252 | VMMAll/EMAllA.asm \
|
---|
253 | VMMAll/FTMAll.cpp \
|
---|
254 | VMMAll/GIMAll.cpp \
|
---|
255 | VMMAll/GIMAllHv.cpp \
|
---|
256 | VMMAll/GIMAllKvm.cpp \
|
---|
257 | VMMAll/TMAll.cpp \
|
---|
258 | VMMAll/TMAllCpu.cpp \
|
---|
259 | VMMAll/TMAllReal.cpp \
|
---|
260 | VMMAll/TMAllVirtual.cpp \
|
---|
261 | VMMAll/TRPMAll.cpp \
|
---|
262 | VMMAll/VMAll.cpp \
|
---|
263 | VMMAll/VMMAll.cpp \
|
---|
264 | VMMAll/VMMAllA.asm \
|
---|
265 | $(if-expr defined(VBOX_WITH_RAW_MODE), \
|
---|
266 | VMMAll/CSAMAll.cpp \
|
---|
267 | VMMAll/PATMAll.cpp \
|
---|
268 | ,)
|
---|
269 | ifdef VBOX_WITH_VUSB
|
---|
270 | VBoxVMM_SOURCES += VMMR3/PDMUsb.cpp
|
---|
271 | endif
|
---|
272 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
273 | VBoxVMM_SOURCES += \
|
---|
274 | VMMR3/PDMAsyncCompletion.cpp \
|
---|
275 | VMMR3/PDMAsyncCompletionFile.cpp \
|
---|
276 | VMMR3/PDMAsyncCompletionFileFailsafe.cpp \
|
---|
277 | VMMR3/PDMAsyncCompletionFileNormal.cpp
|
---|
278 | endif
|
---|
279 | ifdef VBOX_WITH_NETSHAPER
|
---|
280 | VBoxVMM_SOURCES += \
|
---|
281 | VMMR3/PDMNetShaper.cpp \
|
---|
282 | VMMAll/PDMAllNetShaper.cpp
|
---|
283 | endif
|
---|
284 | ifdef VBOX_WITH_REM
|
---|
285 | VBoxVMM_SOURCES += \
|
---|
286 | VMMAll/REMAll.cpp
|
---|
287 | endif
|
---|
288 | ifdef VBOX_WITH_RAW_MODE
|
---|
289 | VBoxVMM_SOURCES.x86 += \
|
---|
290 | VMMSwitcher/32BitTo32Bit.asm \
|
---|
291 | VMMSwitcher/32BitToPAE.asm \
|
---|
292 | VMMSwitcher/PAETo32Bit.asm \
|
---|
293 | VMMSwitcher/PAEToPAE.asm
|
---|
294 | VBoxVMM_SOURCES.amd64 = \
|
---|
295 | VMMSwitcher/AMD64To32Bit.asm \
|
---|
296 | VMMSwitcher/AMD64ToPAE.asm
|
---|
297 | endif
|
---|
298 | VBoxVMM_SOURCES.x86 += \
|
---|
299 | VMMSwitcher/32BitToAMD64.asm \
|
---|
300 | VMMSwitcher/PAEToAMD64.asm \
|
---|
301 | VMMSwitcher/X86Stub.asm
|
---|
302 | VBoxVMM_SOURCES.amd64 += \
|
---|
303 | VMMSwitcher/AMD64Stub.asm
|
---|
304 |
|
---|
305 | VBoxVMM_LIBS = \
|
---|
306 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
307 | ifdef VBOX_WITH_DEBUGGER
|
---|
308 | VBoxVMM_LIBS += \
|
---|
309 | $(PATH_STAGE_LIB)/Debugger$(VBOX_SUFF_LIB)
|
---|
310 | endif
|
---|
311 | VBoxVMM_LIBS += \
|
---|
312 | $(LIB_REM) \
|
---|
313 | $(LIB_RUNTIME)
|
---|
314 |
|
---|
315 | VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
316 | VBoxVMM_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
317 | VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
|
---|
318 | VBoxVMM_LDFLAGS.solaris = -mimpure-text
|
---|
319 |
|
---|
320 | # SSM wish to know the build type, host os and arch.
|
---|
321 | VMMR3/SSM.cpp_DEFS += \
|
---|
322 | KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
|
---|
323 | KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
|
---|
324 | KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
|
---|
325 |
|
---|
326 |
|
---|
327 | #ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
328 | # ifeq ($(KBUILD_HOST), linux)
|
---|
329 | #VBoxVMM_LIBS += aio
|
---|
330 | # endif
|
---|
331 | #endif
|
---|
332 |
|
---|
333 | if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
|
---|
334 | VBoxVMM_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
335 | VBoxVMM_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
336 | VBoxVMM_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
337 | VBoxVMM_VMMAll/PDMAllCritSect.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
338 | endif
|
---|
339 |
|
---|
340 | $(call VBOX_SET_VER_INFO_DLL,VBoxVMM,VirtualBox VMM) # Version info / description.
|
---|
341 |
|
---|
342 |
|
---|
343 | #
|
---|
344 | # Generate macro template for IEM instruction statistics.
|
---|
345 | #
|
---|
346 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxVMM) # Set VBoxVMM_0_OUTDIR
|
---|
347 | VBoxVMM_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
|
---|
348 | VBoxVMM_CLEAN += \
|
---|
349 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h.ts \
|
---|
350 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
|
---|
351 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h.ts)
|
---|
352 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h.ts \
|
---|
353 | +| $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h: \
|
---|
354 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructions.cpp.h \
|
---|
355 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsOneByte.cpp.h \
|
---|
356 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsTwoByte0f.cpp.h \
|
---|
357 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsThree0f38.cpp.h \
|
---|
358 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsThree0f3a.cpp.h \
|
---|
359 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsVexMap1.cpp.h \
|
---|
360 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsVexMap2.cpp.h \
|
---|
361 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructionsVexMap3.cpp.h \
|
---|
362 | $(PATH_SUB_CURRENT)/VMMAll/IEMAllInstructions3DNow.cpp.h
|
---|
363 | $(QUIET)$(call MSG_GENERATE,VBoxVMM,$@,VMMAll/IEMAllInstructions*.cpp.h)
|
---|
364 | $(QUIET)$(RM) -f -- "$@.tmp" "$@.tmp" "$@.sorted"
|
---|
365 | $(QUIET)$(MKDIR) -p -- "$(dir $@)"
|
---|
366 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
367 | $(QUIET)$(SED) \
|
---|
368 | -e '/IEMOP_MNEMONIC\(\|[01234]\|[01234]EX\)(/!d' \
|
---|
369 | -e ':look-for-end-of-invocation' \
|
---|
370 | -e '/)/bend-of-invocation' \
|
---|
371 | -e 'N' \
|
---|
372 | -e 'blook-for-end-of-invocation' \
|
---|
373 | -e ':end-of-invocation' \
|
---|
374 | -e 's/\n/ /g' \
|
---|
375 | -e 's/ */ /g' \
|
---|
376 | -e 's/^.*IEMOP_MNEMONIC\(\|[01234]\|[01234]EX\)(/IEM_DO_INSTR_STAT\1(/' \
|
---|
377 | -e 's/;.*$(DOLLAR)//' \
|
---|
378 | --output "$@.tmp" $(filter %.cpp.h,$^)
|
---|
379 | # Windows sort does some kind of seeking. So, we must use a temporary file and kmk_cat to define and undefine our macros.
|
---|
380 | $(QUIET)$(REDIRECT) -wto "$@.sorted" -- sort "$@.tmp"
|
---|
381 | $(QUIET)$(APPEND) -nt "$@" \
|
---|
382 | '/* Warning autogenerated by VMM/Makefile.kmk. */ ' \
|
---|
383 | '#define IEM_DO_INSTR_STAT0(f,u,l,fd,fi) IEM_DO_INSTR_STAT(l, #l)' \
|
---|
384 | '#define IEM_DO_INSTR_STAT1(f,u,l,o1,fd,fi) IEM_DO_INSTR_STAT(l ## _ ## o1, #l " " #o1)' \
|
---|
385 | '#define IEM_DO_INSTR_STAT2(f,u,l,o1,o2,fd,fi) IEM_DO_INSTR_STAT(l ## _ ## o1 ## _ ## o2, #l " " #o1 "," #o2)' \
|
---|
386 | '#define IEM_DO_INSTR_STAT3(f,u,l,o1,o2,o3,fd,fi) IEM_DO_INSTR_STAT(l ## _ ## o1 ## _ ## o2 ## _ ## o3, #l " " #o1 "," #o2 "," #o3)' \
|
---|
387 | '#define IEM_DO_INSTR_STAT4(f,u,l,o1,o2,o3,o4,fd,fi) IEM_DO_INSTR_STAT(l ## _ ## o1 ## _ ## o2 ## _ ## o3 ## _ ## o4, #l " " #o1 "," #o2 "," #o3 "," #o4)' \
|
---|
388 | '#define IEM_DO_INSTR_STAT0EX(s,m,f,u,l,fd,fi) IEM_DO_INSTR_STAT(s,m)' \
|
---|
389 | '#define IEM_DO_INSTR_STAT1EX(s,m,f,u,l,o1,fd,fi) IEM_DO_INSTR_STAT(s,m)' \
|
---|
390 | '#define IEM_DO_INSTR_STAT2EX(s,m,f,u,l,o1,o2,fd,fi) IEM_DO_INSTR_STAT(s,m)' \
|
---|
391 | '#define IEM_DO_INSTR_STAT3EX(s,m,f,u,l,o1,o2,o3,fd,fi) IEM_DO_INSTR_STAT(s,m)' \
|
---|
392 | '#define IEM_DO_INSTR_STAT4EX(s,m,f,u,l,o1,o2,o3,o4,fd,fi) IEM_DO_INSTR_STAT(s,m)' \
|
---|
393 | ''
|
---|
394 | $(QUIET)$(REDIRECT) -ato "$@" -- $(CAT_EXT) "$@.sorted"
|
---|
395 | $(QUIET)$(APPEND) -n "$@" \
|
---|
396 | '' \
|
---|
397 | '#undef IEM_DO_INSTR_STAT0' \
|
---|
398 | '#undef IEM_DO_INSTR_STAT1' \
|
---|
399 | '#undef IEM_DO_INSTR_STAT2' \
|
---|
400 | '#undef IEM_DO_INSTR_STAT3' \
|
---|
401 | '#undef IEM_DO_INSTR_STAT4' \
|
---|
402 | '#undef IEM_DO_INSTR_STAT0EX' \
|
---|
403 | '#undef IEM_DO_INSTR_STAT1EX' \
|
---|
404 | '#undef IEM_DO_INSTR_STAT2EX' \
|
---|
405 | '#undef IEM_DO_INSTR_STAT3EX' \
|
---|
406 | '#undef IEM_DO_INSTR_STAT4EX' \
|
---|
407 | ''
|
---|
408 | $(QUIET)$(RM) -f -- "$@.tmp" "$@.sorted"
|
---|
409 | $(QUIET)$(CP) -v -f --changed -- "$@" "$(patsubst %.ts,%,$@)"
|
---|
410 |
|
---|
411 | foobar: $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
|
---|
412 |
|
---|
413 | if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)
|
---|
414 | #
|
---|
415 | # Debug type info hack for VMCPU, VM and similar.
|
---|
416 | #
|
---|
417 | # The microsoft linker seems to be using the last occurence of the structures
|
---|
418 | # when writing the module PDB file. So, we put the fully complete structures
|
---|
419 | # in a library which is at the end of the library list.
|
---|
420 | #
|
---|
421 | VBoxVMM_LIBS += $(VBoxVMMPdbTypeHack_1_TARGET)
|
---|
422 | VBoxVMM_LDFLAGS += /Export:PdbTypeHack
|
---|
423 |
|
---|
424 | LIBRARIES += VBoxVMMPdbTypeHack
|
---|
425 | VBoxVMMPdbTypeHack_TEMPLATE = $(VBoxVMM_TEMPLATE)
|
---|
426 | VBoxVMMPdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
|
---|
427 | VBoxVMMPdbTypeHack_DEFS = $(VBoxVMM_DEFS)
|
---|
428 | VBoxVMMPdbTypeHack_DEFS.win = $(VBoxVMM_DEFS.win)
|
---|
429 | VBoxVMMPdbTypeHack_DEFS.win.x86 = $(VBoxVMM_DEFS.win.x86)
|
---|
430 | VBoxVMMPdbTypeHack_DEFS.win.amd64 = $(VBoxVMM_DEFS.win.amd64)
|
---|
431 | VBoxVMMPdbTypeHack_INCS = $(VBoxVMM_INCS)
|
---|
432 | VBoxVMMPdbTypeHack_INTERMEDIATES = $(VBoxVMM_INTERMEDIATES)
|
---|
433 | endif
|
---|
434 |
|
---|
435 |
|
---|
436 | if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
|
---|
437 |
|
---|
438 | #
|
---|
439 | # VMMRCBuiltin.lib
|
---|
440 | #
|
---|
441 | LIBRARIES += VMMRCBuiltin
|
---|
442 | VMMRCBuiltin_TEMPLATE = VBoxRc
|
---|
443 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
444 | VMMRCBuiltin_SOURCES = VMMRC/VMMRCBuiltin.def
|
---|
445 | endif
|
---|
446 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
447 | VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
|
---|
448 | $$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.def | $$(dir $$@)
|
---|
449 | $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
|
---|
450 | endif
|
---|
451 |
|
---|
452 |
|
---|
453 | #
|
---|
454 | # VMMRCImp.lib
|
---|
455 | #
|
---|
456 | LIBRARIES += VMMRCImp
|
---|
457 | VMMRCImp_TEMPLATE = VBoxRc
|
---|
458 | VMMRCImp_SOURCES = $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
459 | VMMRCImp_CLEAN = $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
460 | $(call KB_FN_DO_PASS0_ON_TARGET,VMMRCImp)
|
---|
461 |
|
---|
462 | $(call KB_FN_AUTO_CMD_DEPS,$(VMMRCImp_0_OUTDIR)/VMMRC.def)
|
---|
463 | $(VMMRCImp_0_OUTDIR)/VMMRC.def: $(VMMRCImp_DEFPATH)/VMMRC/VMMRC.def | $$(dir $$@)
|
---|
464 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
465 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
466 | $(SED) \
|
---|
467 | -e '/not-os2/d' \
|
---|
468 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
469 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
470 | --output $@ \
|
---|
471 | $(VMMRCImp_DEFPATH)/VMMRC/VMMRC.def
|
---|
472 | $(APPEND) "$@" ""
|
---|
473 | $(APPEND) "$@" " ___ehInit"
|
---|
474 | else
|
---|
475 | $(SED) \
|
---|
476 | -e '/not-win/d' \
|
---|
477 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
478 | --output $@ $(VMMRCImp_DEFPATH)/VMMRC/VMMRC.def
|
---|
479 | endif
|
---|
480 |
|
---|
481 | endif # RC && (pe || lx)
|
---|
482 |
|
---|
483 |
|
---|
484 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
485 | #
|
---|
486 | # VMMR0Imp.lib
|
---|
487 | #
|
---|
488 | LIBRARIES += VMMR0Imp
|
---|
489 | VMMR0Imp_TEMPLATE = VBoxR0
|
---|
490 | VMMR0Imp_SOURCES = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
491 | VMMR0Imp_CLEAN = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
492 | ifeq ($(KBUILD_TARGET),win) # Experiment: Let's see how blunt the ones messing our NULL_THUNK_DATA entries on W10 are.
|
---|
493 | VMMR0Imp_POST_CMDS = $(KLIBTWEAKER_EXT) --clear-timestamps --fill-null_thunk_data $(out)
|
---|
494 | endif
|
---|
495 | $(call KB_FN_DO_PASS0_ON_TARGET,VMMR0Imp)
|
---|
496 |
|
---|
497 | $(call KB_FN_AUTO_CMD_DEPS,$(VMMR0Imp_0_OUTDIR)/VMMR0.def)
|
---|
498 | $(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def | $$(dir $$@)
|
---|
499 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
500 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
501 | $(SED) \
|
---|
502 | -e '/not-os2/d' \
|
---|
503 | -e '/not-amd64/d' \
|
---|
504 | -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
|
---|
505 | -e 's/[ \t]DATA[ \t]*/ /' \
|
---|
506 | --output $@ $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def
|
---|
507 | $(APPEND) "$@" ""
|
---|
508 | $(APPEND) "$@" " ___ehInit"
|
---|
509 | else
|
---|
510 | $(SED) \
|
---|
511 | -e '/not-win/d' \
|
---|
512 | -e '/not-$(KBUILD_TARGET_ARCH)/d' \
|
---|
513 | --output $@ $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def
|
---|
514 | endif
|
---|
515 | endif # R0: pe + lx
|
---|
516 |
|
---|
517 |
|
---|
518 | #
|
---|
519 | # VMMR3Imp.lib
|
---|
520 | #
|
---|
521 | IMPORT_LIBS += VMMR3Imp
|
---|
522 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VMMR3Imp,VBoxVMM,VMMR3/VMMR3.def)
|
---|
523 |
|
---|
524 | ifneq ($(VBOX_LIB_VMM_LAZY),$(LIB_VMM))
|
---|
525 | #
|
---|
526 | # VMMR3LazyImp.lib (experimental)
|
---|
527 | #
|
---|
528 | LIBRARIES += VMMR3LazyImp
|
---|
529 | VMMR3LazyImp_TEMPLATE = VBoxR3Dll
|
---|
530 | VMMR3LazyImp_INST = $(INST_LIB)
|
---|
531 | VMMR3LazyImp_SOURCES = $(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm
|
---|
532 | VMMR3LazyImp_CLEAN = $(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm
|
---|
533 | $(call KB_FN_DO_PASS0_ON_TARGET,VMMR3LazyImp)
|
---|
534 |
|
---|
535 | $(call KB_FN_AUTO_CMD_DEPS,$(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm)
|
---|
536 | $(VMMR3LazyImp_0_OUTDIR)/VMMR3LazyLoad.asm: $(VMMR3LazyImp_DEFPATH)/VMMR3/VMMR3.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
537 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
538 | $(VBOX_DEF_2_LAZY_LOAD) --output $@ --library VBoxVMM $(VMMR3LazyImp_DEFPATH)/VMMR3/VMMR3.def
|
---|
539 | endif
|
---|
540 |
|
---|
541 |
|
---|
542 | if defined(VBOX_WITH_RAW_MODE) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
543 | #
|
---|
544 | # VMMRC.rc
|
---|
545 | #
|
---|
546 | SYSMODS += VMMRC
|
---|
547 | VMMRC_TEMPLATE = VBoxRc
|
---|
548 | VMMRC_NAME = VMMRC
|
---|
549 |
|
---|
550 | VMMRC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE VBOX_WITH_RAW_MODE_NOT_R0 IN_SUP_RC \
|
---|
551 | $(VMM_COMMON_DEFS)
|
---|
552 | VMMRC_DEFS := $(filter-out VBOX_WITH_NESTED_HWVIRT,$(VMMRC_DEFS))
|
---|
553 | ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
|
---|
554 | VMMRC_DEFS += VMM_R0_SWITCH_STACK
|
---|
555 | endif
|
---|
556 |
|
---|
557 | VMMRC_INCS = \
|
---|
558 | include \
|
---|
559 | VMMRC \
|
---|
560 | $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
|
---|
561 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs
|
---|
562 |
|
---|
563 | VMMRC_LIBS = \
|
---|
564 | $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
|
---|
565 | $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB) \
|
---|
566 | $(PATH_STAGE_LIB)/SUPRC$(VBOX_SUFF_LIB)
|
---|
567 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
568 | VMMRC_LIBS += \
|
---|
569 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
|
---|
570 | endif
|
---|
571 |
|
---|
572 | VMMRC_SOURCES = \
|
---|
573 | VBoxVMM.d \
|
---|
574 | VMMRC/VMMRC0.asm \
|
---|
575 | VMMRC/VMMRCDeps.cpp \
|
---|
576 | VMMRC/CPUMRC.cpp \
|
---|
577 | VMMRC/CPUMRCA.asm \
|
---|
578 | VMMRC/CPUMRCPatchHlp.asm \
|
---|
579 | VMMRC/EMRCA.asm \
|
---|
580 | VMMRC/IOMRC.cpp \
|
---|
581 | VMMRC/MMRamRC.cpp \
|
---|
582 | VMMRC/MMRamRCA.asm \
|
---|
583 | VMMRC/PDMRCDevice.cpp \
|
---|
584 | VMMRC/PGMRC.cpp \
|
---|
585 | VMMRC/SELMRC.cpp \
|
---|
586 | VMMRC/TRPMRC.cpp \
|
---|
587 | VMMRC/TRPMRCHandlers.cpp \
|
---|
588 | VMMRC/TRPMRCHandlersA.asm \
|
---|
589 | VMMRC/VMMRC.cpp \
|
---|
590 | VMMRC/VMMRCA.asm \
|
---|
591 | $(if-expr defined(VBOX_WITH_RAW_MODE), \
|
---|
592 | VMMRC/CSAMRC.cpp \
|
---|
593 | VMMRC/PATMRC.cpp \
|
---|
594 | ,) \
|
---|
595 | VMMRZ/CPUMRZ.cpp \
|
---|
596 | VMMRZ/CPUMRZA.asm \
|
---|
597 | VMMRZ/DBGFRZ.cpp \
|
---|
598 | VMMRZ/PGMRZDynMap.cpp \
|
---|
599 | VMMRZ/VMMRZ.cpp \
|
---|
600 | VMMAll/APICAll.cpp \
|
---|
601 | VMMAll/CPUMAllRegs.cpp \
|
---|
602 | VMMAll/CPUMAllMsrs.cpp \
|
---|
603 | VMMAll/DBGFAll.cpp \
|
---|
604 | VMMAll/IEMAll.cpp \
|
---|
605 | VMMAll/IEMAllAImpl.asm \
|
---|
606 | VMMAll/IEMAllAImplC.cpp \
|
---|
607 | VMMAll/IOMAll.cpp \
|
---|
608 | VMMAll/IOMAllMMIO.cpp \
|
---|
609 | VMMAll/EMAll.cpp \
|
---|
610 | VMMAll/EMAllA.asm \
|
---|
611 | VMMAll/FTMAll.cpp \
|
---|
612 | VMMAll/GIMAll.cpp \
|
---|
613 | VMMAll/GIMAllHv.cpp \
|
---|
614 | VMMAll/GIMAllKvm.cpp \
|
---|
615 | VMMAll/HMAll.cpp \
|
---|
616 | VMMAll/HMSVMAll.cpp \
|
---|
617 | VMMAll/MMAll.cpp \
|
---|
618 | VMMAll/MMAllHyper.cpp \
|
---|
619 | VMMAll/PDMAll.cpp \
|
---|
620 | VMMAll/PDMAllCritSect.cpp \
|
---|
621 | VMMAll/PDMAllCritSectRw.cpp \
|
---|
622 | VMMAll/PDMAllCritSectBoth.cpp \
|
---|
623 | VMMAll/PDMAllQueue.cpp \
|
---|
624 | VMMAll/PGMAll.cpp \
|
---|
625 | VMMAll/PGMAllHandler.cpp \
|
---|
626 | VMMAll/PGMAllMap.cpp \
|
---|
627 | VMMAll/PGMAllPhys.cpp \
|
---|
628 | VMMAll/PGMAllPool.cpp \
|
---|
629 | VMMAll/SELMAll.cpp \
|
---|
630 | VMMAll/TMAll.cpp \
|
---|
631 | VMMAll/TMAllCpu.cpp \
|
---|
632 | VMMAll/TMAllReal.cpp \
|
---|
633 | VMMAll/TMAllVirtual.cpp \
|
---|
634 | VMMAll/TRPMAll.cpp \
|
---|
635 | VMMAll/VMAll.cpp \
|
---|
636 | VMMAll/VMMAll.cpp \
|
---|
637 | VMMAll/VMMAllA.asm \
|
---|
638 | $(if-expr defined(VBOX_WITH_RAW_MODE), \
|
---|
639 | VMMAll/CSAMAll.cpp \
|
---|
640 | VMMAll/PATMAll.cpp \
|
---|
641 | ,)
|
---|
642 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
643 | VMMRC_SOURCES += VMMRC/VMMRC.def
|
---|
644 | endif
|
---|
645 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
646 | VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def
|
---|
647 | endif
|
---|
648 | ifdef VBOX_WITH_REM
|
---|
649 | VMMRC_SOURCES += \
|
---|
650 | VMMAll/REMAll.cpp
|
---|
651 | endif
|
---|
652 |
|
---|
653 | # The very last one.
|
---|
654 | VMMRC_SOURCES += \
|
---|
655 | VMMRC/VMMRC99.asm
|
---|
656 |
|
---|
657 | VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
|
---|
658 |
|
---|
659 | $(call VBOX_SET_VER_INFO_RC,VMMRC,VirtualBox VMM - raw-mode context parts) # Version info / description.
|
---|
660 |
|
---|
661 | if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
|
---|
662 | VMMRC_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
663 | VMMRC_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
664 | VMMRC_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
665 | endif
|
---|
666 |
|
---|
667 | VMMRC_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
|
---|
668 |
|
---|
669 | if "$(KBUILD_TARGET)" == "win"
|
---|
670 | # Debug type info hack for VMCPU, VM and similar. See VBoxVMM for details.
|
---|
671 | VMMRC_LIBS += $(VMMRCPdbTypeHack_1_TARGET)
|
---|
672 | VMMRC_LDFLAGS += /Export:PdbTypeHack
|
---|
673 |
|
---|
674 | LIBRARIES += VMMRCPdbTypeHack
|
---|
675 | VMMRCPdbTypeHack_TEMPLATE = $(VMMRC_TEMPLATE)
|
---|
676 | VMMRCPdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
|
---|
677 | VMMRCPdbTypeHack_DEFS = $(VMMRC_DEFS)
|
---|
678 | VMMRCPdbTypeHack_DEFS.win = $(VMMRC_DEFS.win)
|
---|
679 | VMMRCPdbTypeHack_DEFS.win.x86 = $(VMMRC_DEFS.win.x86)
|
---|
680 | VMMRCPdbTypeHack_DEFS.win.amd64 = $(VMMRC_DEFS.win.amd64)
|
---|
681 | VMMRCPdbTypeHack_INCS = $(VMMRC_INCS)
|
---|
682 | VMMRCPdbTypeHack_INTERMEDIATES = $(VMMRC_INTERMEDIATES)
|
---|
683 | endif
|
---|
684 |
|
---|
685 | endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
|
---|
686 |
|
---|
687 |
|
---|
688 | ifndef VBOX_ONLY_EXTPACKS
|
---|
689 | #
|
---|
690 | # VMMR0.r0
|
---|
691 | #
|
---|
692 | SYSMODS += VMMR0
|
---|
693 | VMMR0_TEMPLATE = VBoxR0
|
---|
694 | VMMR0_SYSSUFF = .r0
|
---|
695 |
|
---|
696 | VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
|
---|
697 | $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
|
---|
698 | ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
|
---|
699 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
700 | VMMR0_DEFS += IN_PCIRAW_R0
|
---|
701 | endif
|
---|
702 | ifdef VBOX_WITH_TRIPLE_FAULT_HACK
|
---|
703 | VMMR0_DEFS += VBOX_WITH_TRIPLE_FAULT_HACK
|
---|
704 | endif
|
---|
705 | ifdef VBOX_WITH_RAW_MODE
|
---|
706 | VMMR0_DEFS += VBOX_WITH_RAW_MODE
|
---|
707 | endif
|
---|
708 | ifdef VBOX_WITH_VMM_R0_SWITCH_STACK
|
---|
709 | VMMR0_DEFS += VMM_R0_SWITCH_STACK
|
---|
710 | endif
|
---|
711 | if1of ($(KBUILD_TARGET), darwin linux win)
|
---|
712 | VMMR0_DEFS += VMM_R0_TOUCH_FPU
|
---|
713 | endif
|
---|
714 | VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
|
---|
715 | VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
|
---|
716 |
|
---|
717 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
718 | VMMR0_CXXFLAGS += -Wunused -Wunused-variable -Wno-unused-parameter
|
---|
719 | endif
|
---|
720 |
|
---|
721 | VMMR0_INCS = \
|
---|
722 | include \
|
---|
723 | $(if-expr defined(VBOX_WITH_RAW_MODE),PATM,) \
|
---|
724 | $(VBoxVMM_0_OUTDIR)/CommonGenIncs
|
---|
725 |
|
---|
726 | VMMR0_SOURCES = \
|
---|
727 | VBoxVMM.d \
|
---|
728 | VMMR0/CPUMR0.cpp \
|
---|
729 | VMMR0/CPUMR0A.asm \
|
---|
730 | VMMR0/GIMR0.cpp \
|
---|
731 | VMMR0/GIMR0Hv.cpp \
|
---|
732 | VMMR0/GIMR0Kvm.cpp \
|
---|
733 | VMMR0/GMMR0.cpp \
|
---|
734 | VMMR0/GVMMR0.cpp \
|
---|
735 | VMMR0/HMR0.cpp \
|
---|
736 | VMMR0/HMR0A.asm \
|
---|
737 | VMMR0/HMVMXR0.cpp \
|
---|
738 | VMMR0/HMSVMR0.cpp \
|
---|
739 | VMMR0/PDMR0Device.cpp \
|
---|
740 | VMMR0/PDMR0Driver.cpp \
|
---|
741 | VMMR0/PGMR0.cpp \
|
---|
742 | VMMR0/PGMR0SharedPage.cpp \
|
---|
743 | VMMR0/TRPMR0.cpp \
|
---|
744 | VMMR0/TRPMR0A.asm \
|
---|
745 | VMMR0/VMMR0.cpp \
|
---|
746 | VMMRZ/CPUMRZ.cpp \
|
---|
747 | VMMRZ/CPUMRZA.asm \
|
---|
748 | VMMRZ/DBGFRZ.cpp \
|
---|
749 | VMMRZ/VMMRZ.cpp \
|
---|
750 | VMMAll/APICAll.cpp \
|
---|
751 | VMMAll/CPUMAllRegs.cpp \
|
---|
752 | VMMAll/CPUMAllMsrs.cpp \
|
---|
753 | VMMAll/CPUMStack.cpp \
|
---|
754 | VMMAll/DBGFAll.cpp \
|
---|
755 | VMMAll/EMAll.cpp \
|
---|
756 | VMMAll/EMAllA.asm \
|
---|
757 | VMMAll/FTMAll.cpp \
|
---|
758 | VMMAll/GIMAll.cpp \
|
---|
759 | VMMAll/GIMAllHv.cpp \
|
---|
760 | VMMAll/GIMAllKvm.cpp \
|
---|
761 | VMMAll/HMAll.cpp \
|
---|
762 | VMMAll/HMSVMAll.cpp \
|
---|
763 | VMMAll/IEMAll.cpp \
|
---|
764 | VMMAll/IEMAllAImpl.asm \
|
---|
765 | VMMAll/IEMAllAImplC.cpp \
|
---|
766 | VMMAll/IOMAll.cpp \
|
---|
767 | VMMAll/IOMAllMMIO.cpp \
|
---|
768 | VMMAll/MMAll.cpp \
|
---|
769 | VMMAll/MMAllHyper.cpp \
|
---|
770 | VMMAll/MMAllPagePool.cpp \
|
---|
771 | VMMAll/PDMAll.cpp \
|
---|
772 | VMMAll/PDMAllCritSect.cpp \
|
---|
773 | VMMAll/PDMAllCritSectRw.cpp \
|
---|
774 | VMMAll/PDMAllCritSectBoth.cpp \
|
---|
775 | VMMAll/PDMAllQueue.cpp \
|
---|
776 | VMMAll/PGMAll.cpp \
|
---|
777 | VMMAll/PGMAllHandler.cpp \
|
---|
778 | VMMAll/PGMAllMap.cpp \
|
---|
779 | VMMAll/PGMAllPhys.cpp \
|
---|
780 | VMMAll/PGMAllPool.cpp \
|
---|
781 | VMMAll/SELMAll.cpp \
|
---|
782 | VMMAll/TMAll.cpp \
|
---|
783 | VMMAll/TMAllCpu.cpp \
|
---|
784 | VMMAll/TMAllReal.cpp \
|
---|
785 | VMMAll/TMAllVirtual.cpp \
|
---|
786 | VMMAll/TRPMAll.cpp \
|
---|
787 | VMMAll/VMAll.cpp \
|
---|
788 | VMMAll/VMMAll.cpp \
|
---|
789 | VMMAll/VMMAllA.asm
|
---|
790 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
791 | VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
|
---|
792 | endif
|
---|
793 | ifdef VBOX_WITH_TRIPLE_FAULT_HACK
|
---|
794 | VMMR0_SOURCES += \
|
---|
795 | VMMR0/VMMR0TripleFaultHack.cpp \
|
---|
796 | VMMR0/VMMR0TripleFaultHackA.asm
|
---|
797 | endif
|
---|
798 | ifdef VBOX_WITH_NETSHAPER
|
---|
799 | VMMR0_SOURCES += \
|
---|
800 | VMMAll/PDMAllNetShaper.cpp
|
---|
801 | endif
|
---|
802 | ifdef VBOX_WITH_REM
|
---|
803 | VMMR0_SOURCES += \
|
---|
804 | VMMAll/REMAll.cpp
|
---|
805 | endif
|
---|
806 | VMMR0_SOURCES.amd64 = \
|
---|
807 | VMMR0/VMMR0JmpA-amd64.asm
|
---|
808 | VMMR0_SOURCES.x86 = \
|
---|
809 | VMMR0/VMMR0JmpA-x86.asm
|
---|
810 |
|
---|
811 | VMMR0_LIBS = \
|
---|
812 | $(PATH_STAGE_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
|
---|
813 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
814 | $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB)
|
---|
815 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
816 | VMMR0_LIBS += \
|
---|
817 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
818 | endif
|
---|
819 |
|
---|
820 | $(call VBOX_SET_VER_INFO_R0,VMMR0,VirtualBox VMM - ring-0 context parts) # Version info / description.
|
---|
821 |
|
---|
822 | if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
|
---|
823 | VMMR0_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
824 | VMMR0_VMMAll/IEMAllAImplC.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
825 | VMMR0_VMMAll/PGMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
|
---|
826 | endif
|
---|
827 |
|
---|
828 | VMMR0_INTERMEDIATES += $(VBoxVMM_0_OUTDIR)/CommonGenIncs/IEMInstructionStatisticsTmpl.h
|
---|
829 |
|
---|
830 | if "$(KBUILD_TARGET)" == "win"
|
---|
831 | # Debug type info hack for VMCPU, VM and similar. See VBoxVMM for details.
|
---|
832 | VMMR0_LIBS += $(VMMR0PdbTypeHack_1_TARGET)
|
---|
833 | VMMR0_LDFLAGS += /Export:PdbTypeHack
|
---|
834 |
|
---|
835 | LIBRARIES += VMMR0PdbTypeHack
|
---|
836 | VMMR0PdbTypeHack_TEMPLATE = $(VMMR0_TEMPLATE)
|
---|
837 | VMMR0PdbTypeHack_SOURCES = VMMAll/AllPdbTypeHack.cpp
|
---|
838 | VMMR0PdbTypeHack_DEFS = $(VMMR0_DEFS)
|
---|
839 | VMMR0PdbTypeHack_DEFS.win = $(VMMR0_DEFS.win)
|
---|
840 | VMMR0PdbTypeHack_DEFS.win.x86 = $(VMMR0_DEFS.win.x86)
|
---|
841 | VMMR0PdbTypeHack_DEFS.win.amd64 = $(VMMR0_DEFS.win.amd64)
|
---|
842 | VMMR0PdbTypeHack_INCS = $(VMMR0_INCS)
|
---|
843 | VMMR0PdbTypeHack_INTERMEDIATES = $(VMMR0_INTERMEDIATES)
|
---|
844 | endif
|
---|
845 |
|
---|
846 | endif # !VBOX_ONLY_EXTPACKS
|
---|
847 |
|
---|
848 |
|
---|
849 |
|
---|
850 | ifndef VBOX_ONLY_EXTPACKS
|
---|
851 | #
|
---|
852 | # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
|
---|
853 | #
|
---|
854 | LIBRARIES += SSMStandalone
|
---|
855 | SSMStandalone_TEMPLATE = VBOXR3EXE
|
---|
856 | SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE CPUM_DB_STANDALONE
|
---|
857 | SSMStandalone_INCS = include
|
---|
858 | SSMStandalone_SOURCES = \
|
---|
859 | VMMR3/SSM.cpp \
|
---|
860 | VMMR3/CPUMR3Db.cpp
|
---|
861 | endif # !VBOX_ONLY_EXTPACKS
|
---|
862 |
|
---|
863 |
|
---|
864 | if !defined(VBOX_ONLY_EXTPACKS) \
|
---|
865 | && ( defined(VBOX_WITH_DTRACE_R3) \
|
---|
866 | || defined(VBOX_WITH_DTRACE_R0) \
|
---|
867 | || defined(VBOX_WITH_DTRACE_RC))
|
---|
868 | #
|
---|
869 | # Install the dtrace library files.
|
---|
870 | #
|
---|
871 | INSTALLS += VMMLibDTrace
|
---|
872 | VMMLibDTrace_INST = $(VBOX_INST_DTRACE_LIB)$(KBUILD_TARGET_ARCH)/
|
---|
873 | VMMLibDTrace_SOURCES = \
|
---|
874 | dtrace/lib/vbox-types.d \
|
---|
875 | dtrace/lib/$(KBUILD_TARGET_ARCH)/vbox-arch-types.d \
|
---|
876 | $(VMMLibDTrace_0_OUTDIR)/vm.d \
|
---|
877 | $(VMMLibDTrace_0_OUTDIR)/cpumctx.d \
|
---|
878 | $(VMMLibDTrace_0_OUTDIR)/cpum.d \
|
---|
879 | $(VMMLibDTrace_0_OUTDIR)/CPUMInternal.d \
|
---|
880 | $(VMMLibDTrace_0_OUTDIR)/x86.d
|
---|
881 | $(call KB_FN_DO_PASS0_ON_TARGET,VMMLibDTrace)
|
---|
882 |
|
---|
883 |
|
---|
884 | ##
|
---|
885 | # Turn the header $2 into the DTrace library script $1.
|
---|
886 | #
|
---|
887 | define def_vmm_lib_dtrace_preprocess
|
---|
888 | $$(call KB_FN_AUTO_CMD_DEPS,$$(VMMLibDTrace_0_OUTDIR)/$1)
|
---|
889 | $$(VMMLibDTrace_0_OUTDIR)/$1: $2 $$(VBOX_VBOXCPP) | $$$$(dir $$$$@)
|
---|
890 | $$(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
891 | $$(QUIET)$$(call MSG_GENERATE,VMMLibDTrace,$$@,$2)
|
---|
892 | $$(QUIET)$(VBOX_VBOXCPP) -d \
|
---|
893 | -D VBOX_FOR_DTRACE_LIB \
|
---|
894 | -D VBOX_FOR_DTRACE_LIB_$(toupper $(KBUILD_TARGET_ARCH)) \
|
---|
895 | -D IN_RING0 \
|
---|
896 | -D RT_C_DECLS_BEGIN= \
|
---|
897 | -D RT_C_DECLS_END= \
|
---|
898 | -D 'RCPTRTYPE(a_Type)=RTRCPTR' \
|
---|
899 | -D 'R3PTRTYPE(a_Type)=RTR3PTR' \
|
---|
900 | -D 'R0PTRTYPE(a_Type)=a_Type' \
|
---|
901 | -D 'AssertCompile(a_Expr)=' \
|
---|
902 | -D 'AssertCompileSize(a_Stuct, a_Size)=' \
|
---|
903 | -D 'bool=uint8_t' \
|
---|
904 | $$(foreach def,\
|
---|
905 | $$(DEFS) \
|
---|
906 | $$(DEFS.$$(KBUILD_TARGET)) \
|
---|
907 | $$(DEFS.$(KBUILD_TARGET_ARCH)) \
|
---|
908 | $$(VMM_COMMON_DEFS) \
|
---|
909 | $$(ARCH_BITS_DEFS)\
|
---|
910 | ,-D '$$(def)') \
|
---|
911 | $2 \
|
---|
912 | $$@
|
---|
913 | $$(QUIET)$$(CHMOD) 644 $$@
|
---|
914 | endef
|
---|
915 | $(evalcall2 def_vmm_lib_dtrace_preprocess,vm.d,$(PATH_ROOT)/include/VBox/vmm/vm.h)
|
---|
916 | $(evalcall2 def_vmm_lib_dtrace_preprocess,cpumctx.d,$(PATH_ROOT)/include/VBox/vmm/cpumctx.h)
|
---|
917 | $(evalcall2 def_vmm_lib_dtrace_preprocess,cpum.d,$(PATH_ROOT)/include/VBox/vmm/cpum.h)
|
---|
918 | $(evalcall2 def_vmm_lib_dtrace_preprocess,CPUMInternal.d,$(PATH_SUB_CURRENT)/include/CPUMInternal.h)
|
---|
919 | $(evalcall2 def_vmm_lib_dtrace_preprocess,x86.d,$(PATH_ROOT)/include/iprt/x86.h)
|
---|
920 |
|
---|
921 | endif
|
---|
922 |
|
---|
923 |
|
---|
924 |
|
---|
925 | #
|
---|
926 | # For vmmGetSvnRev.
|
---|
927 | #
|
---|
928 | VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
929 |
|
---|
930 | #
|
---|
931 | # Disable annoying warnings about array subscript above array bounds in aPages[]
|
---|
932 | #
|
---|
933 | ifneq ($(KBUILD_TARGET),win)
|
---|
934 | VMMR3/PGMPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
935 | VMMAll/PGMAllPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
936 | VMMAll/PGMAll.cpp_CXXFLAGS = -Wno-unused-function
|
---|
937 | VMMAll/IEMAll.cpp_CXXFLAGS = -Wno-unused-function
|
---|
938 | VMMR0/GMMR0.cpp_CXXFLAGS = -Wno-unused-value
|
---|
939 | endif
|
---|
940 |
|
---|
941 | #
|
---|
942 | # Always optimize the interpreter.
|
---|
943 | #
|
---|
944 | if $(USERNAME) != "bird" || "$(KBUILD_TYPE)" == "release" #|| "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64"
|
---|
945 | if1of ($(KBUILD_TARGET), win)
|
---|
946 | # -noover is recognized despite the statement saying otherwise. It silences these warnings:
|
---|
947 | # cl : Command line warning D9025 : overriding '/Od' with '/O2'
|
---|
948 | # cl : Command line warning D9025 : overriding '/Oy-' with '/Oy'
|
---|
949 | VMMAll/IEMAll.cpp_CXXFLAGS += -noover -O2xy
|
---|
950 | else
|
---|
951 | VMMAll/IEMAll.cpp_CXXFLAGS += -O2
|
---|
952 | #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-align-functions -fno-align-jumps -fno-align-loops # Saves a few of percents, not worth it.
|
---|
953 | #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-reorder-blocks # Saves one or two percent ... never mind.
|
---|
954 | VMMAll/IEMAll.cpp_CXXFLAGS += -fomit-frame-pointer # Omitting the frame pointer results in larger code, but it might be worth it. (esp addressing vs ebp?)
|
---|
955 | endif
|
---|
956 | endif # bird wants good stacks
|
---|
957 |
|
---|
958 |
|
---|
959 | # Alias the CPU database entries.
|
---|
960 | $(foreach base,$(notdir $(basename $(wildcard $(PATH_SUB_CURRENT)/VMMR3/cpus/*.h))), $(eval $(base).o $(base).obj: CPUMR3Db.o))
|
---|
961 |
|
---|
962 |
|
---|
963 | #
|
---|
964 | # Process python source(s).
|
---|
965 | #
|
---|
966 | BLDDIRS += $(PATH_TARGET)/pylint
|
---|
967 |
|
---|
968 | define def_vbox_vmm_py_check
|
---|
969 | $(eval name:=$(basename $(notdir $(py))))
|
---|
970 |
|
---|
971 | pylint:: $(name)-py-phony.o
|
---|
972 | $(name).o: $(name)-py-phony.o
|
---|
973 | $(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/
|
---|
974 | ifdef VBOX_WITH_PYLINT
|
---|
975 | $(QUIET2)$(call MSG_L1,Subjecting $(py) to pylint...)
|
---|
976 | $(QUIET)$(REDIRECT) -C "$(dir $(py))" -E LC_ALL=C -- \
|
---|
977 | $(VBOX_PYLINT) --rcfile=$(PATH_TARGET)/no-such-pylintrc \
|
---|
978 | $$(VBOX_PYLINT_FLAGS) $$($(py)_VBOX_PYLINT_FLAGS) ./$(notdir $(py))
|
---|
979 | endif
|
---|
980 | $(QUIET)$(APPEND) -t "$(PATH_TARGET)/pylint/$(name).o"
|
---|
981 |
|
---|
982 | TESTING += $(name)-py-phony.o
|
---|
983 | endef # def_vbox_vmm_py_check
|
---|
984 |
|
---|
985 | $(foreach py, $(addprefix $(PATH_SUB_CURRENT)/VMMAll/, IEMAllInstructionsPython.py ) , $(eval $(def_vbox_vmm_py_check)))
|
---|
986 |
|
---|
987 |
|
---|
988 | #
|
---|
989 | # Test for undefined symbols.
|
---|
990 | #
|
---|
991 | if1of ($(SYSMODS),VMMRC)
|
---|
992 | test-undef-rc:: $(PATH_TARGET)/undef-rc.run
|
---|
993 | OTHERS += $(PATH_TARGET)/undef-rc.run
|
---|
994 | CLEANS += $(PATH_TARGET)/undef-rc.run
|
---|
995 | $(call KB_FN_AUTO_CMD_DEPS,$(PATH_TARGET)/undef-rc.run)
|
---|
996 | $(PATH_TARGET)/undef-rc.run: $$(VMMRC_1_TARGET)
|
---|
997 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
998 | ifn1of ($(KBUILD_TARGET), linux solaris)
|
---|
999 | else
|
---|
1000 | $(call MSG_L1,VMM: Testing for undefined symbols in VMMRC using nm...)
|
---|
1001 | $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
|
---|
1002 | | $(SED) -n \
|
---|
1003 | -e '/^ *U .*/!d' \
|
---|
1004 | -e 's/ *U //' \
|
---|
1005 | \
|
---|
1006 | -e '/^g_VM\>/d'\
|
---|
1007 | -e '/^g_CPUM\>/d'\
|
---|
1008 | -e '/^g_Logger\>/d'\
|
---|
1009 | -e '/^g_RelLogger\>/d'\
|
---|
1010 | -e '/^g_TRPM\>/d'\
|
---|
1011 | -e '/^g_TRPMCPU\>/d'\
|
---|
1012 | -e '/^g_pSUPGlobalInfoPage\>/d'\
|
---|
1013 | -e '/^g_trpmHyperCtxCore\>/d' \
|
---|
1014 | -e '/^g_trpmGuestCtxCore\>/d' \
|
---|
1015 | \
|
---|
1016 | -e 's/\(.*\)$(DOLLAR)/ Undefined symbol: \1/' \
|
---|
1017 | -e 'p' \
|
---|
1018 | -e 'q 1'
|
---|
1019 | endif
|
---|
1020 | $(QUIET)$(APPEND) -t $@
|
---|
1021 | endif
|
---|
1022 |
|
---|
1023 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1024 |
|
---|
1025 |
|
---|
1026 | # Alias the PGM templates to the object in which they are defined.
|
---|
1027 | PGMInternal.o \
|
---|
1028 | PGMBth.o PGMGst.o PGMShw.o \
|
---|
1029 | PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
|
---|
1030 |
|
---|
1031 | PGMAllBth.o PGMAllGst.o PGMAllShw.o \
|
---|
1032 | PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
|
---|
1033 |
|
---|
1034 | PGMRCBth.o PGMRCGst.o PGMRCShw.o \
|
---|
1035 | PGMRCBth.obj PGMRCGst.obj PGMRCShw.obj: PGMRC.o
|
---|
1036 |
|
---|
1037 | PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
|
---|
1038 |
|
---|
1039 | PGMInline.o PGMInline.obj: PGMDbg.o
|
---|
1040 |
|
---|
1041 | # Alias the IEM templates to the object in which they are instantiated.
|
---|
1042 | IEMInternal.o \
|
---|
1043 | IEMAllInstructions.cpp.o IEMAllInstructions.cpp.obj \
|
---|
1044 | IEMAllInstructionsOneByte.cpp.o IEMAllInstructionsOneByte.cpp.obj \
|
---|
1045 | IEMAllInstructionsTwoByte0f.cpp.o IEMAllInstructionsTwoByte0f.cpp.obj \
|
---|
1046 | IEMAllInstructionsThree0f38.cpp.o IEMAllInstructionsThree0f38.cpp.obj \
|
---|
1047 | IEMAllInstructionsThree0f3a.cpp.o IEMAllInstructionsThree0f3a.cpp.obj \
|
---|
1048 | IEMAllInstructionsVexMap1.cpp.o IEMAllInstructionsVexMap1.cpp.obj \
|
---|
1049 | IEMAllInstructionsVexMap2.cpp.o IEMAllInstructionsVexMap2.cpp.obj \
|
---|
1050 | IEMAllInstructionsVexMap3.cpp.o IEMAllInstructionsVexMap3.cpp.obj \
|
---|
1051 | IEMAllInstructions3DNow.cpp.o IEMAllInstructions3DNow.cpp.obj \
|
---|
1052 | IEMAllCImpl.cpp.o IEMAllCImpl.cpp.obj \
|
---|
1053 | IEMAllCImplStrInstr.cpp.o IEMAllCImplStrInstr.cpp.obj: IEMAll.o
|
---|
1054 |
|
---|
1055 | # Alias the switcher templates.
|
---|
1056 | PAEand32Bit.o PAEand32Bit.obj: PAETo32Bit.o PAEToPAE.o 32BitTo32Bit.o PAETo32Bit.o
|
---|
1057 | LegacyandAMD64.o LegacyandAMD64.obj: 32BitToAMD64.o PAEToAMD64.o
|
---|
1058 | AMD64andLegacy.o AMD64andLegacy.obj: AMD64To32Bit.o AMD64ToPAE.o
|
---|
1059 |
|
---|