SConscript revision 10857
15612Sgblack@eecs.umich.edu# -*- mode:python -*-
25612Sgblack@eecs.umich.edu
35612Sgblack@eecs.umich.edu# Copyright (c) 2012 ARM Limited
45612Sgblack@eecs.umich.edu# All rights reserved.
55612Sgblack@eecs.umich.edu#
65612Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
75612Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
85612Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
95612Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
105612Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
115612Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
125612Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
135612Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
145612Sgblack@eecs.umich.edu#
155612Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
165612Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
175612Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
185612Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
195612Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
205612Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
215612Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
225612Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
235612Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
245612Sgblack@eecs.umich.edu# this software without specific prior written permission.
255612Sgblack@eecs.umich.edu#
265612Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
275612Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
285612Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
295612Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
305612Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
315612Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
325612Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
335612Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
345612Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
355612Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
365612Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
375612Sgblack@eecs.umich.edu#
385612Sgblack@eecs.umich.edu# Authors: Andreas Sandberg
395612Sgblack@eecs.umich.edu
405612Sgblack@eecs.umich.eduImport('*')
415612Sgblack@eecs.umich.edu
425612Sgblack@eecs.umich.eduif env['USE_KVM']:
435612Sgblack@eecs.umich.edu    SimObject('KvmVM.py')
445612Sgblack@eecs.umich.edu    SimObject('BaseKvmCPU.py')
455612Sgblack@eecs.umich.edu
465612Sgblack@eecs.umich.edu    Source('base.cc')
475612Sgblack@eecs.umich.edu    Source('vm.cc')
485612Sgblack@eecs.umich.edu    Source('perfevent.cc')
495612Sgblack@eecs.umich.edu    Source('timer.cc')
505612Sgblack@eecs.umich.edu
515612Sgblack@eecs.umich.edu    if env['TARGET_ISA'] == 'x86':
525612Sgblack@eecs.umich.edu        SimObject('X86KvmCPU.py')
535612Sgblack@eecs.umich.edu        Source('x86_cpu.cc')
545612Sgblack@eecs.umich.edu
555612Sgblack@eecs.umich.edu    DebugFlag('Kvm', 'Basic KVM Functionality')
565612Sgblack@eecs.umich.edu    DebugFlag('KvmContext', 'KVM/gem5 context synchronization')
575612Sgblack@eecs.umich.edu    DebugFlag('KvmIO', 'KVM MMIO diagnostics')
585612Sgblack@eecs.umich.edu    DebugFlag('KvmInt', 'KVM Interrupt handling')
595612Sgblack@eecs.umich.edu    DebugFlag('KvmRun', 'KvmRun entry/exit diagnostics')
605612Sgblack@eecs.umich.edu    DebugFlag('KvmTimer', 'KVM timing')
615612Sgblack@eecs.umich.edu
625614Sgblack@eecs.umich.edu    CompoundFlag('KvmAll', [ 'Kvm', 'KvmContext', 'KvmRun',
635614Sgblack@eecs.umich.edu                             'KvmIO', 'KvmInt', 'KvmTimer' ],
645612Sgblack@eecs.umich.edu                 'All KVM debug flags')
655612Sgblack@eecs.umich.edu