TBETable.hh (11111:6da33e720481) TBETable.hh (11168:f98eb2da15a4)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef __MEM_RUBY_STRUCTURES_TBETABLE_HH__
30#define __MEM_RUBY_STRUCTURES_TBETABLE_HH__
31
32#include <iostream>
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef __MEM_RUBY_STRUCTURES_TBETABLE_HH__
30#define __MEM_RUBY_STRUCTURES_TBETABLE_HH__
31
32#include <iostream>
33#include <unordered_map>
33
34
34#include "base/hashmap.hh"
35#include "mem/ruby/common/Address.hh"
36
37template<class ENTRY>
38class TBETable
39{
40 public:
41 TBETable(int number_of_TBEs)
42 : m_number_of_TBEs(number_of_TBEs)

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

58 void print(std::ostream& out) const;
59
60 private:
61 // Private copy constructor and assignment operator
62 TBETable(const TBETable& obj);
63 TBETable& operator=(const TBETable& obj);
64
65 // Data Members (m_prefix)
35#include "mem/ruby/common/Address.hh"
36
37template<class ENTRY>
38class TBETable
39{
40 public:
41 TBETable(int number_of_TBEs)
42 : m_number_of_TBEs(number_of_TBEs)

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

58 void print(std::ostream& out) const;
59
60 private:
61 // Private copy constructor and assignment operator
62 TBETable(const TBETable& obj);
63 TBETable& operator=(const TBETable& obj);
64
65 // Data Members (m_prefix)
66 m5::hash_map<Addr, ENTRY> m_map;
66 std::unordered_map<Addr, ENTRY> m_map;
67
68 private:
69 int m_number_of_TBEs;
70};
71
72template<class ENTRY>
73inline std::ostream&
74operator<<(std::ostream& out, const TBETable<ENTRY>& obj)

--- 50 unchanged lines hidden ---
67
68 private:
69 int m_number_of_TBEs;
70};
71
72template<class ENTRY>
73inline std::ostream&
74operator<<(std::ostream& out, const TBETable<ENTRY>& obj)

--- 50 unchanged lines hidden ---