tagged.hh (5338:e75d02a09806) | tagged.hh (8831:6c08a877af8f) |
---|---|
1/* 2 * Copyright (c) 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 * @file 33 * Describes a tagged prefetcher. 34 */ 35 36#ifndef __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ 37#define __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ 38 39#include "mem/cache/prefetch/base.hh" | 1/* 2 * Copyright (c) 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 * @file 33 * Describes a tagged prefetcher. 34 */ 35 36#ifndef __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ 37#define __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ 38 39#include "mem/cache/prefetch/base.hh" |
40#include "params/TaggedPrefetcher.hh" |
|
40 | 41 |
42 |
|
41class TaggedPrefetcher : public BasePrefetcher 42{ | 43class TaggedPrefetcher : public BasePrefetcher 44{ |
43 protected: 44 45 Tick latency; 46 int degree; 47 | |
48 public: 49 | 45 public: 46 |
50 TaggedPrefetcher(const BaseCacheParams *p); | 47 TaggedPrefetcher(const Params *p); |
51 52 ~TaggedPrefetcher() {} 53 54 void calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, 55 std::list<Tick> &delays); 56}; 57 58#endif // __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ | 48 49 ~TaggedPrefetcher() {} 50 51 void calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, 52 std::list<Tick> &delays); 53}; 54 55#endif // __MEM_CACHE_PREFETCH_TAGGED_PREFETCHER_HH__ |