SConscript revision 13223
15703SN/A# -*- mode:python -*-
25703SN/A
310220Sandreas.hansson@arm.com# Copyright (c) 2006 The Regents of The University of Michigan
410220Sandreas.hansson@arm.com# All rights reserved.
510220Sandreas.hansson@arm.com#
65703SN/A# Redistribution and use in source and binary forms, with or without
710220Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are
810220Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright
910220Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer;
1010220Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright
1110220Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the
1210220Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution;
1310220Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its
1410036SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
1510036SAli.Saidi@ARM.com# this software without specific prior written permission.
1610220Sandreas.hansson@arm.com#
1710220Sandreas.hansson@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
189729Sandreas.hansson@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1910220Sandreas.hansson@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2010220Sandreas.hansson@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2110220Sandreas.hansson@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2210220Sandreas.hansson@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2310220Sandreas.hansson@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2410220Sandreas.hansson@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2510220Sandreas.hansson@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
269729Sandreas.hansson@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2710220Sandreas.hansson@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2810220Sandreas.hansson@arm.com#
2910220Sandreas.hansson@arm.com# Authors: Nathan Binkert
3010220Sandreas.hansson@arm.com
3110220Sandreas.hansson@arm.comImport('*')
3210220Sandreas.hansson@arm.com
3310220Sandreas.hansson@arm.comSimObject('Cache.py')
3410220Sandreas.hansson@arm.com
3510220Sandreas.hansson@arm.comSource('base.cc')
3610220Sandreas.hansson@arm.comSource('cache.cc')
3710220Sandreas.hansson@arm.comSource('cache_blk.cc')
3810220Sandreas.hansson@arm.comSource('mshr.cc')
3910220Sandreas.hansson@arm.comSource('mshr_queue.cc')
4010220Sandreas.hansson@arm.comSource('noncoherent_cache.cc')
4110220Sandreas.hansson@arm.comSource('sector_blk.cc')
4210220Sandreas.hansson@arm.comSource('write_queue.cc')
4310220Sandreas.hansson@arm.comSource('write_queue_entry.cc')
4410220Sandreas.hansson@arm.com
4510220Sandreas.hansson@arm.comDebugFlag('Cache')
4610220Sandreas.hansson@arm.comDebugFlag('CachePort')
4710220Sandreas.hansson@arm.comDebugFlag('CacheRepl')
4810220Sandreas.hansson@arm.comDebugFlag('CacheTags')
4910220Sandreas.hansson@arm.comDebugFlag('CacheVerbose')
5010220Sandreas.hansson@arm.comDebugFlag('HWPrefetch')
5110220Sandreas.hansson@arm.com
5210220Sandreas.hansson@arm.com# CacheTags is so outrageously verbose, printing the cache's entire tag
539978Sandreas.hansson@arm.com# array on each timing access, that you should probably have to ask for
5410220Sandreas.hansson@arm.com# it explicitly even above and beyond CacheAll.
5510220Sandreas.hansson@arm.comCompoundFlag('CacheAll', ['Cache', 'CachePort', 'CacheRepl', 'CacheVerbose',
5610220Sandreas.hansson@arm.com                          'HWPrefetch'])
5710220Sandreas.hansson@arm.com
5810220Sandreas.hansson@arm.com