VirtualBox

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

Last change on this file since 40356 was 40356, checked in by vboxsync, 13 years ago

MWAIT fixes: Only clear the mwait-active flag when actually resuming code execution. Trigger reschedule in the EMMWAIT_FLAG_BREAKIRQIF0 case when VMR3WaitHalted returns and IRQs are pending.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.2 KB
Line 
1# $Id: Makefile.kmk 40356 2012-03-05 13:51:50Z vboxsync $
2## @file
3# Top-level makefile for the VMM.
4#
5
6#
7# Copyright (C) 2006-2010 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
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Include sub-makefiles.
22include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
23
24
25#
26# Globals
27#
28
29## DEFS variable that is picked up by all three VMM targets.
30# Can be prepended to by setting it in LocalConfig.kmk
31VMM_COMMON_DEFS ?= VBOX_IN_VMM
32ifdef VBOX_WITH_RAW_MODE
33 VMM_COMMON_DEFS += VBOX_WITH_RAW_MODE
34endif
35ifdef VBOX_WITH_IEM
36 VMM_COMMON_DEFS += VBOX_WITH_IEM
37endif
38ifdef VBOX_WITH_REM
39 VMM_COMMON_DEFS += VBOX_WITH_REM
40endif
41ifdef VBOX_WITH_MULTI_CORE
42 VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
43endif
44ifdef VBOX_WITH_R0_LOGGING
45 VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
46endif
47ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
48 VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
49endif
50ifdef VBOX_WITH_PCI_PASSTHROUGH
51 VMM_COMMON_DEFS += VBOX_WITH_PCI_PASSTHROUGH
52endif
53# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
54
55# Special IEM debug mode which compares the result with REM.
56ifdef IEM_VERIFICATION_MODE
57 VMM_COMMON_DEFS += IEM_VERIFICATION_MODE
58endif
59
60
61#
62# VMMR3.dll
63#
64ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
65LIBRARIES += VMMR3
66endif
67
68VMMR3_TEMPLATE = VBoxR3DllNoPic
69
70VMMR3_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS)
71## @todo eliminate IN_GMM_R3
72ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
73 VMMR3_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
74endif
75ifdef VBOX_WITH_VUSB
76 VMMR3_DEFS += VBOX_WITH_USB
77endif
78ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
79 VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
80endif
81VMMR3_DEFS.darwin = VMM_R0_SWITCH_STACK
82VMMR3_DEFS.darwin.x86 = \
83 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \
84 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R3
85
86VMMR3_INCS = \
87 include \
88 PATM
89VMMR3_ASINCS = .
90
91VMMR3_SOURCES = \
92 VMMR3/CFGM.cpp \
93 VMMR3/CPUM.cpp \
94 VMMR3/CPUMDbg.cpp \
95 VMMR3/DBGF.cpp \
96 VMMR3/DBGFAddr.cpp \
97 VMMR3/DBGFAddrSpace.cpp \
98 VMMR3/DBGFBp.cpp \
99 VMMR3/DBGFCoreWrite.cpp \
100 VMMR3/DBGFCpu.cpp \
101 VMMR3/DBGFDisas.cpp \
102 VMMR3/DBGFInfo.cpp \
103 VMMR3/DBGFLog.cpp \
104 VMMR3/DBGFMem.cpp \
105 VMMR3/DBGFOS.cpp \
106 VMMR3/DBGFReg.cpp \
107 VMMR3/DBGFStack.cpp \
108 VMMR3/DBGFSym.cpp \
109 VMMR3/DBGFR3Trace.cpp \
110 VMMR3/EM.cpp \
111 VMMR3/EMRaw.cpp \
112 VMMR3/EMHwaccm.cpp \
113 VMMR3/FTM.cpp \
114 VMMR3/IEMR3.cpp \
115 VMMR3/IOM.cpp \
116 VMMR3/GMM.cpp \
117 VMMR3/MM.cpp \
118 VMMR3/MMHeap.cpp \
119 VMMR3/MMHyper.cpp \
120 VMMR3/MMPagePool.cpp \
121 VMMR3/MMUkHeap.cpp \
122 VMMR3/PDM.cpp \
123 VMMR3/PDMBlkCache.cpp \
124 VMMR3/PDMDevice.cpp \
125 VMMR3/PDMDevHlp.cpp \
126 VMMR3/PDMDevMiscHlp.cpp \
127 VMMR3/PDMDriver.cpp \
128 VMMR3/PDMLdr.cpp \
129 VMMR3/PDMCritSect.cpp \
130 VMMR3/PDMQueue.cpp \
131 VMMR3/PDMThread.cpp \
132 VMMR3/PGM.cpp \
133 VMMR3/PGMDbg.cpp \
134 VMMR3/PGMHandler.cpp \
135 VMMR3/PGMMap.cpp \
136 VMMR3/PGMPhys.cpp \
137 VMMR3/PGMPool.cpp \
138 VMMR3/PGMSavedState.cpp \
139 VMMR3/PGMSharedPage.cpp \
140 VMMR3/SELM.cpp \
141 VMMR3/SSM.cpp \
142 VMMR3/STAM.cpp \
143 VMMR3/TM.cpp \
144 VMMR3/TRPM.cpp \
145 VMMR3/VM.cpp \
146 VMMR3/VMEmt.cpp \
147 VMMR3/VMReq.cpp \
148 VMMR3/VMM.cpp \
149 VMMR3/VMMGuruMeditation.cpp \
150 VMMR3/VMMSwitcher.cpp \
151 VMMR3/VMMTests.cpp \
152 VMMR3/HWACCM.cpp \
153 VMMR3/CSAM.cpp \
154 VMMR3/PATM.cpp \
155 VMMR3/PATMPatch.cpp \
156 VMMR3/PATMGuest.cpp \
157 VMMR3/PATMA.asm \
158 VMMR3/PATMSSM.cpp \
159 VMMAll/CPUMAllRegs.cpp \
160 VMMAll/CPUMStack.cpp \
161 VMMAll/DBGFAll.cpp \
162 VMMAll/HWACCMAll.cpp \
163 VMMAll/IOMAll.cpp \
164 VMMAll/IOMAllMMIO.cpp \
165 VMMAll/MMAll.cpp \
166 VMMAll/MMAllHyper.cpp \
167 VMMAll/MMAllPagePool.cpp \
168 VMMAll/PDMAll.cpp \
169 VMMAll/PDMAllCritSect.cpp \
170 VMMAll/PDMAllQueue.cpp \
171 VMMAll/PGMAll.cpp \
172 VMMAll/PGMAllHandler.cpp \
173 VMMAll/PGMAllMap.cpp \
174 VMMAll/PGMAllPhys.cpp \
175 VMMAll/PGMAllPool.cpp \
176 VMMAll/REMAll.cpp \
177 VMMAll/SELMAll.cpp \
178 VMMAll/EMAll.cpp \
179 VMMAll/EMAllA.asm \
180 VMMAll/FTMAll.cpp \
181 VMMAll/IEMAll.cpp \
182 VMMAll/IEMAllAImpl.asm \
183 VMMAll/IEMAllAImplC.cpp \
184 VMMAll/TMAll.cpp \
185 VMMAll/TMAllCpu.cpp \
186 VMMAll/TMAllReal.cpp \
187 VMMAll/TMAllVirtual.cpp \
188 VMMAll/TRPMAll.cpp \
189 VMMAll/VMAll.cpp \
190 VMMAll/VMMAll.cpp \
191 VMMAll/VMMAllA.asm \
192 VMMAll/CSAMAll.cpp \
193 VMMAll/PATMAll.cpp
194ifdef VBOX_WITH_VUSB
195 VMMR3_SOURCES += VMMR3/PDMUsb.cpp
196endif
197ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
198 VMMR3_SOURCES += \
199 VMMR3/PDMAsyncCompletion.cpp \
200 VMMR3/PDMAsyncCompletionFile.cpp \
201 VMMR3/PDMAsyncCompletionFileFailsafe.cpp \
202 VMMR3/PDMAsyncCompletionFileNormal.cpp
203endif
204
205ifdef VBOX_WITH_RAW_MODE
206 VMMR3_SOURCES.x86 += \
207 VMMSwitcher/32BitTo32Bit.asm \
208 VMMSwitcher/32BitToPAE.asm \
209 VMMSwitcher/32BitToAMD64.asm \
210 VMMSwitcher/PAETo32Bit.asm \
211 VMMSwitcher/PAEToAMD64.asm \
212 VMMSwitcher/PAEToPAE.asm
213 VMMR3_SOURCES.amd64 = \
214 VMMSwitcher/AMD64To32Bit.asm \
215 VMMSwitcher/AMD64ToPAE.asm
216 VMMR3_SOURCES.darwin.x86 += \
217 VMMSwitcher/AMD64ToPAE.asm
218endif
219
220
221# SSM wish to know the build type, host os and arch.
222VMMR3/SSM.cpp_DEFS += \
223 KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
224 KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
225 KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
226
227#
228# The VMM DLL.
229#
230ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
231DLLS += VBoxVMM
232endif
233VBoxVMM_TEMPLATE = VBoxR3DllNoPic
234VBoxVMM_DEFS = $(VMMR3_DEFS)
235VBoxVMM_DEFS.$(KBUILD_TARGET) = $(VMMR3_DEFS.$(KBUILD_TARGET))
236VBoxVMM_SOURCES = VMMR3/VBoxVMMDeps.cpp
237VBoxVMM_SONAME.linux = VBoxVMM.so
238
239VBoxVMM_LIBS = \
240 $(PATH_STAGE_LIB)/VMMR3$(VBOX_SUFF_LIB) \
241 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
242ifdef VBOX_WITH_DEBUGGER
243 VBoxVMM_LIBS += \
244 $(PATH_STAGE_LIB)/Debugger$(VBOX_SUFF_LIB)
245endif
246VBoxVMM_LIBS += \
247 $(LIB_REM) \
248 $(LIB_RUNTIME)
249
250VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
251VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll
252VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
253VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
254VBoxVMM_LDFLAGS.solaris = -mimpure-text
255#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
256# ifeq ($(KBUILD_HOST), linux)
257#VBoxVMM_LIBS += aio
258# endif
259#endif
260
261
262if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
263
264 #
265 # VMMRCBuiltin.lib
266 #
267 LIBRARIES += VMMRCBuiltin
268 VMMRCBuiltin_TEMPLATE = VBoxRc
269 ifeq ($(VBOX_LDR_FMT32),pe)
270 VMMRCBuiltin_SOURCES = VMMRC/VMMRCBuiltin.def
271 endif
272 ifeq ($(VBOX_LDR_FMT32),lx)
273 VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
274 $$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.def | $$(dir $$@)
275 $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
276 endif
277
278
279 #
280 # VMMRCImp.lib
281 #
282 LIBRARIES += VMMRCImp
283 VMMRCImp_TEMPLATE = VBoxRc
284 VMMRCImp_SOURCES = $(VMMRCImp_0_OUTDIR)/VMMRC.def
285 VMMRCImp_CLEAN = $(VMMRCImp_0_OUTDIR)/VMMRC.def
286
287 $$(VMMRCImp_0_OUTDIR)/VMMRC.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRC.def | $$(dir $$@)
288 ifeq ($(VBOX_LDR_FMT32),lx)
289 $(SED) \
290 -e '/not-os2/d' \
291 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
292 -e 's/[ \t]DATA[ \t]*/ /' \
293 --output $@ \
294 $<
295 $(APPEND) "$@" ""
296 $(APPEND) "$@" " ___ehInit"
297 else
298 $(SED) \
299 -e '/not-win/d' \
300 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
301 --output $@ $<
302 endif
303
304endif # RC && (pe || lx)
305
306
307if1of ($(VBOX_LDR_FMT), pe lx)
308 #
309 # VMMR0Imp.lib
310 #
311 LIBRARIES += VMMR0Imp
312 VMMR0Imp_TEMPLATE = VBoxR0
313 VMMR0Imp_SOURCES = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
314 VMMR0Imp_CLEAN = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
315
316 $$(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
317 ifeq ($(VBOX_LDR_FMT),lx)
318 $(SED) \
319 -e '/not-os2/d' \
320 -e '/not-amd64/d' \
321 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
322 -e 's/[ \t]DATA[ \t]*/ /' \
323 --output $@ $<
324 $(APPEND) "$@" ""
325 $(APPEND) "$@" " ___ehInit"
326 else
327 $(SED) \
328 -e '/not-win/d' \
329 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
330 --output $@ $<
331 endif
332endif # R0: pe + lx
333
334
335#
336# VMMR3Imp.lib
337#
338IMPORT_LIBS += VMMR3Imp
339$(call VBOX_GENERATE_IMPORT_TARGET_FN,VMMR3Imp,VBoxVMM,VMMR3/VMMR3.def)
340
341
342if defined(VBOX_WITH_RAW_MODE) && !defined(VBOX_ONLY_EXTPACKS)
343 #
344 # VMMRC.gc
345 #
346 SYSMODS += VMMRC
347 VMMRC_TEMPLATE = VBoxRc
348 VMMRC_NAME = VMMGC
349 VMMRC_SYSSUFF = .gc
350
351 VMMRC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
352 ifeq ($(KBUILD_TARGET_ARCH),x86)
353 VMMRC_DEFS.darwin = VMM_R0_SWITCH_STACK
354 VMMRC_DEFS.darwin = \
355 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \
356 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_RC
357 endif
358
359 VMMRC_INCS := \
360 include \
361 VMMRC \
362 PATM
363
364 VMMRC_LIBS = \
365 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
366 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
367 ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
368 VMMRC_LIBS += \
369 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
370 endif
371
372 VMMRC_SOURCES = \
373 VMMRC/VMMRC0.asm \
374 VMMRC/VMMRCDeps.cpp \
375 VMMRC/CPUMRC.cpp \
376 VMMRC/CPUMRCA.asm \
377 VMMRC/EMRCA.asm \
378 VMMRC/IOMRC.cpp \
379 VMMRC/MMRamRC.cpp \
380 VMMRC/MMRamRCA.asm \
381 VMMRC/PDMRCDevice.cpp \
382 VMMRC/PGMRC.cpp \
383 VMMRC/SELMRC.cpp \
384 VMMRC/TRPMRC.cpp \
385 VMMRC/TRPMRCHandlers.cpp \
386 VMMRC/TRPMRCHandlersA.asm \
387 VMMRC/VMMRC.cpp \
388 VMMRC/VMMRCA.asm \
389 VMMRC/HWACCMRCA.asm \
390 VMMRC/CSAMRC.cpp \
391 VMMRC/PATMRC.cpp \
392 VMMRZ/DBGFRZ.cpp \
393 VMMRZ/PGMRZDynMap.cpp \
394 VMMRZ/VMMRZ.cpp \
395 VMMAll/CPUMAllRegs.cpp \
396 VMMAll/CPUMAllA.asm \
397 VMMAll/DBGFAll.cpp \
398 VMMAll/IOMAll.cpp \
399 VMMAll/IOMAllMMIO.cpp \
400 VMMAll/EMAll.cpp \
401 VMMAll/EMAllA.asm \
402 VMMAll/FTMAll.cpp \
403 VMMAll/MMAll.cpp \
404 VMMAll/MMAllHyper.cpp \
405 VMMAll/PDMAll.cpp \
406 VMMAll/PDMAllCritSect.cpp \
407 VMMAll/PDMAllQueue.cpp \
408 VMMAll/PGMAll.cpp \
409 VMMAll/PGMAllHandler.cpp \
410 VMMAll/PGMAllMap.cpp \
411 VMMAll/PGMAllPhys.cpp \
412 VMMAll/PGMAllPool.cpp \
413 VMMAll/REMAll.cpp \
414 VMMAll/SELMAll.cpp \
415 VMMAll/TMAll.cpp \
416 VMMAll/TMAllCpu.cpp \
417 VMMAll/TMAllReal.cpp \
418 VMMAll/TMAllVirtual.cpp \
419 VMMAll/TRPMAll.cpp \
420 VMMAll/VMAll.cpp \
421 VMMAll/VMMAll.cpp \
422 VMMAll/VMMAllA.asm \
423 VMMAll/CSAMAll.cpp \
424 VMMAll/PATMAll.cpp
425 ifeq ($(VBOX_LDR_FMT32),pe)
426 VMMRC_SOURCES += VMMRC/VMMRC.def
427 endif
428 ifeq ($(VBOX_LDR_FMT32),lx)
429 VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def
430 endif
431
432
433 # the very last one.
434 VMMRC_SOURCES += VMMRC/VMMRC99.asm
435
436 VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
437endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
438
439
440ifndef VBOX_ONLY_EXTPACKS
441 #
442 # VMMR0.r0
443 #
444 SYSMODS += VMMR0
445 VMMR0_TEMPLATE = VBoxR0
446 VMMR0_SYSSUFF = .r0
447
448 VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
449 $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
450 ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
451 ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
452 VMMR0_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
453 endif
454 ifdef VBOX_WITH_PCI_PASSTHROUGH
455 VMMR0_DEFS += IN_PCIRAW_R0
456 endif
457 ifdef VBOX_WITH_TRIPLE_FAULT_HACK
458 VMMR0_DEFS += VBOX_WITH_TRIPLE_FAULT_HACK
459 endif
460 VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
461 VMMR0_DEFS.darwin.x86 = \
462 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \
463 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0
464 VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
465
466 ifeq ($(VBOX_LDR_FMT),elf)
467 VMMR0_LDFLAGS = -e VMMR0EntryEx
468 endif
469 VMMR0_INCS = \
470 include \
471 PATM
472
473 VMMR0_SOURCES = \
474 VMMR0/CPUMR0.cpp \
475 VMMR0/CPUMR0A.asm \
476 VMMR0/GMMR0.cpp \
477 VMMR0/GVMMR0.cpp \
478 VMMR0/HWACCMR0.cpp \
479 VMMR0/HWACCMR0A.asm \
480 VMMR0/HWSVMR0.cpp \
481 VMMR0/HWVMXR0.cpp \
482 VMMR0/PDMR0Device.cpp \
483 VMMR0/PDMR0Driver.cpp \
484 VMMR0/PGMR0.cpp \
485 VMMR0/PGMR0SharedPage.cpp \
486 VMMR0/TRPMR0.cpp \
487 VMMR0/TRPMR0A.asm \
488 VMMR0/VMMR0.cpp \
489 VMMRZ/DBGFRZ.cpp \
490 VMMRZ/VMMRZ.cpp \
491 VMMAll/CPUMAllA.asm \
492 VMMAll/CPUMAllRegs.cpp \
493 VMMAll/CPUMStack.cpp \
494 VMMAll/DBGFAll.cpp \
495 VMMAll/EMAll.cpp \
496 VMMAll/EMAllA.asm \
497 VMMAll/FTMAll.cpp \
498 VMMAll/HWACCMAll.cpp \
499 VMMAll/IOMAll.cpp \
500 VMMAll/IOMAllMMIO.cpp \
501 VMMAll/MMAll.cpp \
502 VMMAll/MMAllHyper.cpp \
503 VMMAll/MMAllPagePool.cpp \
504 VMMAll/PDMAll.cpp \
505 VMMAll/PDMAllCritSect.cpp \
506 VMMAll/PDMAllQueue.cpp \
507 VMMAll/PGMAll.cpp \
508 VMMAll/PGMAllHandler.cpp \
509 VMMAll/PGMAllMap.cpp \
510 VMMAll/PGMAllPhys.cpp \
511 VMMAll/PGMAllPool.cpp \
512 VMMAll/REMAll.cpp \
513 VMMAll/SELMAll.cpp \
514 VMMAll/TMAll.cpp \
515 VMMAll/TMAllCpu.cpp \
516 VMMAll/TMAllReal.cpp \
517 VMMAll/TMAllVirtual.cpp \
518 VMMAll/TRPMAll.cpp \
519 VMMAll/VMAll.cpp \
520 VMMAll/VMMAll.cpp \
521 VMMAll/VMMAllA.asm
522 if1of ($(VBOX_LDR_FMT), pe lx)
523 VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
524 endif
525 ifdef VBOX_WITH_TRIPLE_FAULT_HACK
526 VMMR0_SOURCES += \
527 VMMR0/VMMR0TripleFaultHack.cpp \
528 VMMR0/VMMR0TripleFaultHackA.asm
529 endif
530 VMMR0_SOURCES.amd64 = \
531 VMMR0/VMMR0JmpA-amd64.asm
532 VMMR0_SOURCES.x86 = \
533 VMMR0/VMMR0JmpA-x86.asm
534 VMMR0_SOURCES.darwin.x86 = \
535 VMMRZ/PGMRZDynMap.cpp
536
537 VMMR0_LIBS = \
538 $(PATH_STAGE_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
539 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
540 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB)
541 ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
542 VMMR0_LIBS += \
543 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
544 endif
545endif # !VBOX_ONLY_EXTPACKS
546
547
548ifndef VBOX_ONLY_EXTPACKS
549 #
550 # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
551 #
552 LIBRARIES += SSMStandalone
553 SSMStandalone_TEMPLATE = VBOXR3EXE
554 SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE
555 SSMStandalone_INCS = include
556 SSMStandalone_SOURCES = VMMR3/SSM.cpp
557endif # !VBOX_ONLY_EXTPACKS
558
559
560#
561# For vmmGetSvnRev.
562#
563VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
564
565#
566# Disable annoying warnings about array subscript above array bounds in aPages[]
567#
568ifneq ($(KBUILD_TARGET),win)
569 VMMR3/PGMPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
570 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
571 VMMAll/PGMAll.cpp_CXXFLAGS = -Wno-unused-function
572 VMMAll/IEMAll.cpp_CXXFLAGS = -Wno-unused-parameter
573endif
574
575#
576# Always optimize the interpreter.
577#
578if1of ($(KBUILD_TARGET), win)
579#VMMAll/IEMAll.cpp_CXXFLAGS += TODO
580#else if1of ($(KBUILD_TARGET_ARCH), amd64)
581# VMMAll/IEMAll.cpp_CXXFLAGS += -O2 -fomit-frame-pointer
582else
583 VMMAll/IEMAll.cpp_CXXFLAGS += -O2
584 #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-align-functions -fno-align-jumps -fno-align-loops # Saves a few of percents, not worth it.
585 #VMMAll/IEMAll.cpp_CXXFLAGS += -fno-reorder-blocks # Saves one or two percent ... never mind.
586 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?)
587endif
588
589
590include $(KBUILD_PATH)/subfooter.kmk
591
592
593# Alias the PGM templates to the object in which they are defined.
594PGMInternal.o \
595PGMBth.o PGMGst.o PGMShw.o \
596PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
597
598PGMAllBth.o PGMAllGst.o PGMAllShw.o \
599PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
600
601PGMRCBth.o PGMRCGst.o PGMRCShw.o \
602PGMRCBth.obj PGMRCGst.obj PGMRCShw.obj: PGMRC.o
603
604PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
605
606PGMInline.o PGMInline.obj: PGMDbg.o
607
608# Alias the IEM templates to the object in which they are instantiated.
609IEMInternal.o \
610IEMAllInstructions.cpp.o IEMAllInstructions.cpp.obj \
611IEMAllCImpl.cpp.o IEMAllCImpl.cpp.obj \
612IEMAllCImplStrInstr.cpp.o IEMAllCImplStrInstr.cpp.obj: IEMAll.o
613
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