SConscript revision 9651:f551c8ad12a5
12131SN/A# -*- mode:python -*-
25268Sksewell@umich.edu
35254Sksewell@umich.edu# Copyright (c) 2012 ARM Limited
45254Sksewell@umich.edu# All rights reserved.
52131SN/A#
65254Sksewell@umich.edu# The license below extends only to copyright in the software and shall
75254Sksewell@umich.edu# not be construed as granting a license to any other intellectual
85254Sksewell@umich.edu# property including but not limited to intellectual property relating
95254Sksewell@umich.edu# to a hardware implementation of the functionality of the software
105254Sksewell@umich.edu# licensed hereunder.  You may use the software subject to the license
115254Sksewell@umich.edu# terms below provided that you ensure that this notice is replicated
125254Sksewell@umich.edu# unmodified and in its entirety in all distributions of the software,
135254Sksewell@umich.edu# modified or unmodified, in source code or in binary form.
145254Sksewell@umich.edu#
155254Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without
162131SN/A# modification, are permitted provided that the following conditions are
175254Sksewell@umich.edu# met: redistributions of source code must retain the above copyright
185254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer;
195254Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright
205254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the
215254Sksewell@umich.edu# documentation and/or other materials provided with the distribution;
225254Sksewell@umich.edu# neither the name of the copyright holders nor the names of its
235254Sksewell@umich.edu# contributors may be used to endorse or promote products derived from
245254Sksewell@umich.edu# this software without specific prior written permission.
255254Sksewell@umich.edu#
265254Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
275254Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
282665Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
295254Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
305254Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
315222Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
322131SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
332131SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
342239SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
357676Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
367676Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
377676Snate@binkert.org#
382680Sktlim@umich.edu# Authors: Andreas Sandberg
397676Snate@binkert.org
402800Ssaidi@eecs.umich.eduImport('*')
417676Snate@binkert.org
422800Ssaidi@eecs.umich.eduif env['USE_KVM']:
432800Ssaidi@eecs.umich.edu    SimObject('KvmVM.py')
442131SN/A    SimObject('BaseKvmCPU.py')
452447SN/A
462447SN/A    Source('base.cc')
472131SN/A    Source('vm.cc')
482479SN/A    Source('perfevent.cc')
492447SN/A    Source('timer.cc')
502447SN/A
512131SN/A    DebugFlag('Kvm', 'Basic KVM Functionality')
522479SN/A    DebugFlag('KvmContext', 'KVM/gem5 context synchronization')
532447SN/A    DebugFlag('KvmIO', 'KVM MMIO diagnostics')
542447SN/A    DebugFlag('KvmInt', 'KVM Interrupt handling')
552447SN/A    DebugFlag('KvmRun', 'KvmRun entry/exit diagnostics')
565224Sksewell@umich.edu    DebugFlag('KvmTimer', 'KVM timing')
575222Sksewell@umich.edu
585222Sksewell@umich.edu    CompoundFlag('KvmAll', [ 'Kvm', 'KvmContext', 'KvmRun',
595222Sksewell@umich.edu                             'KvmIO', 'KvmInt', 'KvmTimer' ],
605222Sksewell@umich.edu                 'All KVM debug flags')
615222Sksewell@umich.edu