mem_dep_unit_impl.hh (4033:7bb1223f9645) mem_dep_unit_impl.hh (5529:9ae69b9cd7fd)
1/*
2 * Copyright (c) 2004-2006 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;

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

28 * Authors: Kevin Lim
29 */
30
31#include <map>
32
33#include "cpu/o3/inst_queue.hh"
34#include "cpu/o3/mem_dep_unit.hh"
35
1/*
2 * Copyright (c) 2004-2006 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;

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

28 * Authors: Kevin Lim
29 */
30
31#include <map>
32
33#include "cpu/o3/inst_queue.hh"
34#include "cpu/o3/mem_dep_unit.hh"
35
36#include "params/DerivO3CPU.hh"
37
36template <class MemDepPred, class Impl>
37MemDepUnit<MemDepPred, Impl>::MemDepUnit()
38 : loadBarrier(false), loadBarrierSN(0), storeBarrier(false),
39 storeBarrierSN(0), iqPtr(NULL)
40{
41}
42
43template <class MemDepPred, class Impl>
38template <class MemDepPred, class Impl>
39MemDepUnit<MemDepPred, Impl>::MemDepUnit()
40 : loadBarrier(false), loadBarrierSN(0), storeBarrier(false),
41 storeBarrierSN(0), iqPtr(NULL)
42{
43}
44
45template <class MemDepPred, class Impl>
44MemDepUnit::MemDepUnit(Params *params)
46MemDepUnit<MemDepPred, Impl>::MemDepUnit(DerivO3CPUParams *params)
45 : depPred(params->SSITSize, params->LFSTSize), loadBarrier(false),
46 loadBarrierSN(0), storeBarrier(false), storeBarrierSN(0), iqPtr(NULL)
47{
48 DPRINTF(MemDepUnit, "Creating MemDepUnit object.\n");
49}
50
51template <class MemDepPred, class Impl>
52MemDepUnit<MemDepPred, Impl>::~MemDepUnit()

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

77std::string
78MemDepUnit<MemDepPred, Impl>::name() const
79{
80 return "memdepunit";
81}
82
83template <class MemDepPred, class Impl>
84void
47 : depPred(params->SSITSize, params->LFSTSize), loadBarrier(false),
48 loadBarrierSN(0), storeBarrier(false), storeBarrierSN(0), iqPtr(NULL)
49{
50 DPRINTF(MemDepUnit, "Creating MemDepUnit object.\n");
51}
52
53template <class MemDepPred, class Impl>
54MemDepUnit<MemDepPred, Impl>::~MemDepUnit()

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

79std::string
80MemDepUnit<MemDepPred, Impl>::name() const
81{
82 return "memdepunit";
83}
84
85template <class MemDepPred, class Impl>
86void
85MemDepUnit::init(Params *params, int tid)
87MemDepUnit<MemDepPred, Impl>::init(DerivO3CPUParams *params, int tid)
86{
87 DPRINTF(MemDepUnit, "Creating MemDepUnit %i object.\n",tid);
88
89 id = tid;
90
91 depPred.init(params->SSITSize, params->LFSTSize);
92}
93

--- 490 unchanged lines hidden ---
88{
89 DPRINTF(MemDepUnit, "Creating MemDepUnit %i object.\n",tid);
90
91 id = tid;
92
93 depPred.init(params->SSITSize, params->LFSTSize);
94}
95

--- 490 unchanged lines hidden ---