12810SN/A/*
22810SN/A * Copyright (c) 2005 The Regents of The University of Michigan
32810SN/A * All rights reserved.
42810SN/A *
52810SN/A * Redistribution and use in source and binary forms, with or without
62810SN/A * modification, are permitted provided that the following conditions are
72810SN/A * met: redistributions of source code must retain the above copyright
82810SN/A * notice, this list of conditions and the following disclaimer;
92810SN/A * redistributions in binary form must reproduce the above copyright
102810SN/A * notice, this list of conditions and the following disclaimer in the
112810SN/A * documentation and/or other materials provided with the distribution;
122810SN/A * neither the name of the copyright holders nor the names of its
132810SN/A * contributors may be used to endorse or promote products derived from
142810SN/A * this software without specific prior written permission.
152810SN/A *
162810SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172810SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182810SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192810SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202810SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212810SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222810SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232810SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242810SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252810SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262810SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272810SN/A *
282810SN/A * Authors: Ron Dreslinski
292810SN/A */
302810SN/A
312810SN/A/**
322810SN/A * @file
333861SN/A * Describes a tagged prefetcher.
342810SN/A */
352810SN/A
3610623Smitch.hayenga@arm.com#ifndef __MEM_CACHE_PREFETCH_TAGGED_HH__
3710623Smitch.hayenga@arm.com#define __MEM_CACHE_PREFETCH_TAGGED_HH__
382810SN/A
3910623Smitch.hayenga@arm.com#include "mem/cache/prefetch/queued.hh"
4012727Snikos.nikoleris@arm.com#include "mem/packet.hh"
418831Smrinmoy.ghosh@arm.com
4212727Snikos.nikoleris@arm.comstruct TaggedPrefetcherParams;
432810SN/A
4410623Smitch.hayenga@arm.comclass TaggedPrefetcher : public QueuedPrefetcher
452810SN/A{
4610623Smitch.hayenga@arm.com  protected:
4713422Sodanrc@yahoo.com.br      const int degree;
4810623Smitch.hayenga@arm.com
492810SN/A  public:
5010623Smitch.hayenga@arm.com    TaggedPrefetcher(const TaggedPrefetcherParams *p);
512810SN/A
522810SN/A    ~TaggedPrefetcher() {}
532810SN/A
5413551Sjavier.bueno@metempsy.com    void calculatePrefetch(const PrefetchInfo &pfi,
5513422Sodanrc@yahoo.com.br                           std::vector<AddrPriority> &addresses) override;
562810SN/A};
572810SN/A
5810623Smitch.hayenga@arm.com#endif // __MEM_CACHE_PREFETCH_TAGGED_HH__
59