cache.cc (2810:5befce12ad70) cache.cc (3712:c8a8938402cd)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32 */
33
34/**
35 * @file
36 * Cache template instantiations.
37 */
38
39#include "mem/config/cache.hh"
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32 */
33
34/**
35 * @file
36 * Cache template instantiations.
37 */
38
39#include "mem/config/cache.hh"
40#include "mem/config/compression.hh"
41
42#include "mem/cache/tags/cache_tags.hh"
43
44#if defined(USE_CACHE_LRU)
45#include "mem/cache/tags/lru.hh"
46#endif
47
48#if defined(USE_CACHE_FALRU)

--- 7 unchanged lines hidden (view full) ---

56#if defined(USE_CACHE_SPLIT)
57#include "mem/cache/tags/split.hh"
58#endif
59
60#if defined(USE_CACHE_SPLIT_LIFO)
61#include "mem/cache/tags/split_lifo.hh"
62#endif
63
40
41#include "mem/cache/tags/cache_tags.hh"
42
43#if defined(USE_CACHE_LRU)
44#include "mem/cache/tags/lru.hh"
45#endif
46
47#if defined(USE_CACHE_FALRU)

--- 7 unchanged lines hidden (view full) ---

55#if defined(USE_CACHE_SPLIT)
56#include "mem/cache/tags/split.hh"
57#endif
58
59#if defined(USE_CACHE_SPLIT_LIFO)
60#include "mem/cache/tags/split_lifo.hh"
61#endif
62
64#include "base/compression/null_compression.hh"
65#if defined(USE_LZSS_COMPRESSION)
66#include "base/compression/lzss_compression.hh"
67#endif
68
69#include "mem/cache/miss/miss_queue.hh"
70#include "mem/cache/miss/blocking_buffer.hh"
71
72#include "mem/cache/coherence/uni_coherence.hh"
73#include "mem/cache/coherence/simple_coherence.hh"
74
75#include "mem/cache/cache_impl.hh"
76
77// Template Instantiations
78#ifndef DOXYGEN_SHOULD_SKIP_THIS
79
80
81#if defined(USE_CACHE_FALRU)
63#include "mem/cache/miss/miss_queue.hh"
64#include "mem/cache/miss/blocking_buffer.hh"
65
66#include "mem/cache/coherence/uni_coherence.hh"
67#include "mem/cache/coherence/simple_coherence.hh"
68
69#include "mem/cache/cache_impl.hh"
70
71// Template Instantiations
72#ifndef DOXYGEN_SHOULD_SKIP_THIS
73
74
75#if defined(USE_CACHE_FALRU)
82template class Cache<CacheTags<FALRU,NullCompression>, BlockingBuffer, SimpleCoherence>;
83template class Cache<CacheTags<FALRU,NullCompression>, BlockingBuffer, UniCoherence>;
84template class Cache<CacheTags<FALRU,NullCompression>, MissQueue, SimpleCoherence>;
85template class Cache<CacheTags<FALRU,NullCompression>, MissQueue, UniCoherence>;
86#if defined(USE_LZSS_COMPRESSION)
87template class Cache<CacheTags<FALRU,LZSSCompression>, BlockingBuffer, SimpleCoherence>;
88template class Cache<CacheTags<FALRU,LZSSCompression>, BlockingBuffer, UniCoherence>;
89template class Cache<CacheTags<FALRU,LZSSCompression>, MissQueue, SimpleCoherence>;
90template class Cache<CacheTags<FALRU,LZSSCompression>, MissQueue, UniCoherence>;
76template class Cache, BlockingBuffer, SimpleCoherence>;
77template class Cache, BlockingBuffer, UniCoherence>;
78template class Cache, MissQueue, SimpleCoherence>;
79template class Cache, MissQueue, UniCoherence>;
91#endif
80#endif
92#endif
93
94#if defined(USE_CACHE_IIC)
81
82#if defined(USE_CACHE_IIC)
95template class Cache<CacheTags<IIC,NullCompression>, BlockingBuffer, SimpleCoherence>;
96template class Cache<CacheTags<IIC,NullCompression>, BlockingBuffer, UniCoherence>;
97template class Cache<CacheTags<IIC,NullCompression>, MissQueue, SimpleCoherence>;
98template class Cache<CacheTags<IIC,NullCompression>, MissQueue, UniCoherence>;
99#if defined(USE_LZSS_COMPRESSION)
100template class Cache<CacheTags<IIC,LZSSCompression>, BlockingBuffer, SimpleCoherence>;
101template class Cache<CacheTags<IIC,LZSSCompression>, BlockingBuffer, UniCoherence>;
102template class Cache<CacheTags<IIC,LZSSCompression>, MissQueue, SimpleCoherence>;
103template class Cache<CacheTags<IIC,LZSSCompression>, MissQueue, UniCoherence>;
83template class Cache, BlockingBuffer, SimpleCoherence>;
84template class Cache, BlockingBuffer, UniCoherence>;
85template class Cache, MissQueue, SimpleCoherence>;
86template class Cache, MissQueue, UniCoherence>;
104#endif
87#endif
105#endif
106
107#if defined(USE_CACHE_LRU)
88
89#if defined(USE_CACHE_LRU)
108template class Cache<CacheTags<LRU,NullCompression>, BlockingBuffer, SimpleCoherence>;
109template class Cache<CacheTags<LRU,NullCompression>, BlockingBuffer, UniCoherence>;
110template class Cache<CacheTags<LRU,NullCompression>, MissQueue, SimpleCoherence>;
111template class Cache<CacheTags<LRU,NullCompression>, MissQueue, UniCoherence>;
112#if defined(USE_LZSS_COMPRESSION)
113template class Cache<CacheTags<LRU,LZSSCompression>, BlockingBuffer, SimpleCoherence>;
114template class Cache<CacheTags<LRU,LZSSCompression>, BlockingBuffer, UniCoherence>;
115template class Cache<CacheTags<LRU,LZSSCompression>, MissQueue, SimpleCoherence>;
116template class Cache<CacheTags<LRU,LZSSCompression>, MissQueue, UniCoherence>;
90template class Cache, BlockingBuffer, SimpleCoherence>;
91template class Cache, BlockingBuffer, UniCoherence>;
92template class Cache, MissQueue, SimpleCoherence>;
93template class Cache, MissQueue, UniCoherence>;
117#endif
94#endif
118#endif
119
120#if defined(USE_CACHE_SPLIT)
95
96#if defined(USE_CACHE_SPLIT)
121template class Cache<CacheTags<Split,NullCompression>, BlockingBuffer, SimpleCoherence>;
122template class Cache<CacheTags<Split,NullCompression>, BlockingBuffer, UniCoherence>;
123template class Cache<CacheTags<Split,NullCompression>, MissQueue, SimpleCoherence>;
124template class Cache<CacheTags<Split,NullCompression>, MissQueue, UniCoherence>;
125#if defined(USE_LZSS_COMPRESSION)
126template class Cache<CacheTags<Split,LZSSCompression>, BlockingBuffer, SimpleCoherence>;
127template class Cache<CacheTags<Split,LZSSCompression>, BlockingBuffer, UniCoherence>;
128template class Cache<CacheTags<Split,LZSSCompression>, MissQueue, SimpleCoherence>;
129template class Cache<CacheTags<Split,LZSSCompression>, MissQueue, UniCoherence>;
97template class Cache, BlockingBuffer, SimpleCoherence>;
98template class Cache, BlockingBuffer, UniCoherence>;
99template class Cache, MissQueue, SimpleCoherence>;
100template class Cache, MissQueue, UniCoherence>;
130#endif
101#endif
131#endif
132
133#if defined(USE_CACHE_SPLIT_LIFO)
102
103#if defined(USE_CACHE_SPLIT_LIFO)
134template class Cache<CacheTags<SplitLIFO,NullCompression>, BlockingBuffer, SimpleCoherence>;
135template class Cache<CacheTags<SplitLIFO,NullCompression>, BlockingBuffer, UniCoherence>;
136template class Cache<CacheTags<SplitLIFO,NullCompression>, MissQueue, SimpleCoherence>;
137template class Cache<CacheTags<SplitLIFO,NullCompression>, MissQueue, UniCoherence>;
138#if defined(USE_LZSS_COMPRESSION)
139template class Cache<CacheTags<SplitLIFO,LZSSCompression>, BlockingBuffer, SimpleCoherence>;
140template class Cache<CacheTags<SplitLIFO,LZSSCompression>, BlockingBuffer, UniCoherence>;
141template class Cache<CacheTags<SplitLIFO,LZSSCompression>, MissQueue, SimpleCoherence>;
142template class Cache<CacheTags<SplitLIFO,LZSSCompression>, MissQueue, UniCoherence>;
104template class Cache, BlockingBuffer, SimpleCoherence>;
105template class Cache, BlockingBuffer, UniCoherence>;
106template class Cache, MissQueue, SimpleCoherence>;
107template class Cache, MissQueue, UniCoherence>;
143#endif
108#endif
144#endif
145
146#endif //DOXYGEN_SHOULD_SKIP_THIS
109
110#endif //DOXYGEN_SHOULD_SKIP_THIS