cache.cc revision 3860:73e3642713a3
113627Sjavier.bueno@metempsy.com/*
213627Sjavier.bueno@metempsy.com * Copyright (c) 2004-2005 The Regents of The University of Michigan
313627Sjavier.bueno@metempsy.com * All rights reserved.
413627Sjavier.bueno@metempsy.com *
513627Sjavier.bueno@metempsy.com * Redistribution and use in source and binary forms, with or without
613627Sjavier.bueno@metempsy.com * modification, are permitted provided that the following conditions are
713627Sjavier.bueno@metempsy.com * met: redistributions of source code must retain the above copyright
813627Sjavier.bueno@metempsy.com * notice, this list of conditions and the following disclaimer;
913627Sjavier.bueno@metempsy.com * redistributions in binary form must reproduce the above copyright
1013627Sjavier.bueno@metempsy.com * notice, this list of conditions and the following disclaimer in the
1113627Sjavier.bueno@metempsy.com * documentation and/or other materials provided with the distribution;
1213627Sjavier.bueno@metempsy.com * neither the name of the copyright holders nor the names of its
1313627Sjavier.bueno@metempsy.com * contributors may be used to endorse or promote products derived from
1413627Sjavier.bueno@metempsy.com * this software without specific prior written permission.
1513627Sjavier.bueno@metempsy.com *
1613627Sjavier.bueno@metempsy.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1713627Sjavier.bueno@metempsy.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1813627Sjavier.bueno@metempsy.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1913627Sjavier.bueno@metempsy.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2013627Sjavier.bueno@metempsy.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2113627Sjavier.bueno@metempsy.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2213627Sjavier.bueno@metempsy.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2313627Sjavier.bueno@metempsy.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2413627Sjavier.bueno@metempsy.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2513627Sjavier.bueno@metempsy.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2613627Sjavier.bueno@metempsy.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2713627Sjavier.bueno@metempsy.com *
2813627Sjavier.bueno@metempsy.com * Authors: Erik Hallnor
2913627Sjavier.bueno@metempsy.com *          Steve Reinhardt
3013627Sjavier.bueno@metempsy.com *          Lisa Hsu
3113627Sjavier.bueno@metempsy.com *          Kevin Lim
3213627Sjavier.bueno@metempsy.com */
3313627Sjavier.bueno@metempsy.com
3413627Sjavier.bueno@metempsy.com/**
3513627Sjavier.bueno@metempsy.com * @file
3613627Sjavier.bueno@metempsy.com * Cache template instantiations.
3713627Sjavier.bueno@metempsy.com */
3813627Sjavier.bueno@metempsy.com
3913627Sjavier.bueno@metempsy.com#include "mem/config/cache.hh"
4013627Sjavier.bueno@metempsy.com
4113627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_LRU)
4213627Sjavier.bueno@metempsy.com#include "mem/cache/tags/lru.hh"
4313627Sjavier.bueno@metempsy.com#endif
4413627Sjavier.bueno@metempsy.com
4513627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_FALRU)
4613627Sjavier.bueno@metempsy.com#include "mem/cache/tags/fa_lru.hh"
4713627Sjavier.bueno@metempsy.com#endif
4813627Sjavier.bueno@metempsy.com
4913627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_IIC)
5013627Sjavier.bueno@metempsy.com#include "mem/cache/tags/iic.hh"
5113627Sjavier.bueno@metempsy.com#endif
5213627Sjavier.bueno@metempsy.com
5313627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_SPLIT)
5413627Sjavier.bueno@metempsy.com#include "mem/cache/tags/split.hh"
5513627Sjavier.bueno@metempsy.com#endif
5613627Sjavier.bueno@metempsy.com
5713627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_SPLIT_LIFO)
5813627Sjavier.bueno@metempsy.com#include "mem/cache/tags/split_lifo.hh"
5913627Sjavier.bueno@metempsy.com#endif
6013627Sjavier.bueno@metempsy.com
6113627Sjavier.bueno@metempsy.com#include "mem/cache/miss/miss_queue.hh"
6213627Sjavier.bueno@metempsy.com#include "mem/cache/miss/blocking_buffer.hh"
6313627Sjavier.bueno@metempsy.com
6413627Sjavier.bueno@metempsy.com#include "mem/cache/coherence/uni_coherence.hh"
6513627Sjavier.bueno@metempsy.com#include "mem/cache/coherence/simple_coherence.hh"
6613627Sjavier.bueno@metempsy.com
6713627Sjavier.bueno@metempsy.com#include "mem/cache/cache_impl.hh"
6813627Sjavier.bueno@metempsy.com
6913627Sjavier.bueno@metempsy.com// Template Instantiations
7013627Sjavier.bueno@metempsy.com#ifndef DOXYGEN_SHOULD_SKIP_THIS
7113627Sjavier.bueno@metempsy.com
7213627Sjavier.bueno@metempsy.com
7313627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_FALRU)
7413627Sjavier.bueno@metempsy.comtemplate class Cache<FALRU, SimpleCoherence>;
7513627Sjavier.bueno@metempsy.comtemplate class Cache<FALRU, UniCoherence>;
7613627Sjavier.bueno@metempsy.com#endif
7713627Sjavier.bueno@metempsy.com
7813627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_IIC)
7913627Sjavier.bueno@metempsy.comtemplate class Cache<IIC, SimpleCoherence>;
8013627Sjavier.bueno@metempsy.comtemplate class Cache<IIC, UniCoherence>;
8113627Sjavier.bueno@metempsy.com#endif
8213627Sjavier.bueno@metempsy.com
8313627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_LRU)
8413627Sjavier.bueno@metempsy.comtemplate class Cache<LRU, SimpleCoherence>;
8513627Sjavier.bueno@metempsy.comtemplate class Cache<LRU, UniCoherence>;
8613627Sjavier.bueno@metempsy.com#endif
8713627Sjavier.bueno@metempsy.com
8813627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_SPLIT)
8913627Sjavier.bueno@metempsy.comtemplate class Cache<Split, SimpleCoherence>;
9013627Sjavier.bueno@metempsy.comtemplate class Cache<Split, UniCoherence>;
9113627Sjavier.bueno@metempsy.com#endif
9213627Sjavier.bueno@metempsy.com
9313627Sjavier.bueno@metempsy.com#if defined(USE_CACHE_SPLIT_LIFO)
9413627Sjavier.bueno@metempsy.comtemplate class Cache<SplitLIFO, SimpleCoherence>;
9513627Sjavier.bueno@metempsy.comtemplate class Cache<SplitLIFO, UniCoherence>;
9613627Sjavier.bueno@metempsy.com#endif
9713627Sjavier.bueno@metempsy.com
9813627Sjavier.bueno@metempsy.com#endif //DOXYGEN_SHOULD_SKIP_THIS
9913627Sjavier.bueno@metempsy.com