SConscript revision 9651
112464Sjang.hanhwi@gmail.com# -*- mode:python -*-
212464Sjang.hanhwi@gmail.com
312464Sjang.hanhwi@gmail.com# Copyright (c) 2012 ARM Limited
412464Sjang.hanhwi@gmail.com# All rights reserved.
512464Sjang.hanhwi@gmail.com#
612464Sjang.hanhwi@gmail.com# The license below extends only to copyright in the software and shall
712464Sjang.hanhwi@gmail.com# not be construed as granting a license to any other intellectual
812464Sjang.hanhwi@gmail.com# property including but not limited to intellectual property relating
912464Sjang.hanhwi@gmail.com# to a hardware implementation of the functionality of the software
1012464Sjang.hanhwi@gmail.com# licensed hereunder.  You may use the software subject to the license
1112464Sjang.hanhwi@gmail.com# terms below provided that you ensure that this notice is replicated
1212464Sjang.hanhwi@gmail.com# unmodified and in its entirety in all distributions of the software,
1312464Sjang.hanhwi@gmail.com# modified or unmodified, in source code or in binary form.
1412464Sjang.hanhwi@gmail.com#
1512464Sjang.hanhwi@gmail.com# Redistribution and use in source and binary forms, with or without
1612464Sjang.hanhwi@gmail.com# modification, are permitted provided that the following conditions are
1712464Sjang.hanhwi@gmail.com# met: redistributions of source code must retain the above copyright
1812464Sjang.hanhwi@gmail.com# notice, this list of conditions and the following disclaimer;
1912464Sjang.hanhwi@gmail.com# redistributions in binary form must reproduce the above copyright
2012464Sjang.hanhwi@gmail.com# notice, this list of conditions and the following disclaimer in the
2112464Sjang.hanhwi@gmail.com# documentation and/or other materials provided with the distribution;
2212464Sjang.hanhwi@gmail.com# neither the name of the copyright holders nor the names of its
2312464Sjang.hanhwi@gmail.com# contributors may be used to endorse or promote products derived from
2412464Sjang.hanhwi@gmail.com# this software without specific prior written permission.
2512464Sjang.hanhwi@gmail.com#
2612464Sjang.hanhwi@gmail.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2712464Sjang.hanhwi@gmail.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2812464Sjang.hanhwi@gmail.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2912464Sjang.hanhwi@gmail.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3012464Sjang.hanhwi@gmail.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3112464Sjang.hanhwi@gmail.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3212464Sjang.hanhwi@gmail.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3312464Sjang.hanhwi@gmail.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3412464Sjang.hanhwi@gmail.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3512464Sjang.hanhwi@gmail.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3612464Sjang.hanhwi@gmail.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3712464Sjang.hanhwi@gmail.com#
3812464Sjang.hanhwi@gmail.com# Authors: Andreas Sandberg
3912464Sjang.hanhwi@gmail.com
4012464Sjang.hanhwi@gmail.comImport('*')
4112464Sjang.hanhwi@gmail.com
4212464Sjang.hanhwi@gmail.comif env['USE_KVM']:
4312464Sjang.hanhwi@gmail.com    SimObject('KvmVM.py')
4412464Sjang.hanhwi@gmail.com    SimObject('BaseKvmCPU.py')
4512464Sjang.hanhwi@gmail.com
4612464Sjang.hanhwi@gmail.com    Source('base.cc')
4712464Sjang.hanhwi@gmail.com    Source('vm.cc')
4812464Sjang.hanhwi@gmail.com    Source('perfevent.cc')
4912464Sjang.hanhwi@gmail.com    Source('timer.cc')
5012464Sjang.hanhwi@gmail.com
5112464Sjang.hanhwi@gmail.com    DebugFlag('Kvm', 'Basic KVM Functionality')
5212464Sjang.hanhwi@gmail.com    DebugFlag('KvmContext', 'KVM/gem5 context synchronization')
5312464Sjang.hanhwi@gmail.com    DebugFlag('KvmIO', 'KVM MMIO diagnostics')
54    DebugFlag('KvmInt', 'KVM Interrupt handling')
55    DebugFlag('KvmRun', 'KvmRun entry/exit diagnostics')
56    DebugFlag('KvmTimer', 'KVM timing')
57
58    CompoundFlag('KvmAll', [ 'Kvm', 'KvmContext', 'KvmRun',
59                             'KvmIO', 'KvmInt', 'KvmTimer' ],
60                 'All KVM debug flags')
61