CheckTable.cc (7632:acf43d6bbc18) CheckTable.cc (7780:42da07116e12)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

106CheckTable::getRandomCheck()
107{
108 return m_check_vector[random() % m_check_vector.size()];
109}
110
111Check*
112CheckTable::getCheck(const Address& address)
113{
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

106CheckTable::getRandomCheck()
107{
108 return m_check_vector[random() % m_check_vector.size()];
109}
110
111Check*
112CheckTable::getCheck(const Address& address)
113{
114 DEBUG_MSG(TESTER_COMP, MedPrio, "Looking for check by address");
115 DEBUG_EXPR(TESTER_COMP, MedPrio, address);
114 DPRINTF(RubyTest, "Looking for check by address: %s", address);
116
117 m5::hash_map<Address, Check*>::iterator i = m_lookup_map.find(address);
118
119 if (i == m_lookup_map.end())
120 return NULL;
121
122 Check* check = i->second;
123 assert(check != NULL);
124 return check;
125}
126
127void
128CheckTable::print(std::ostream& out) const
129{
130}
115
116 m5::hash_map<Address, Check*>::iterator i = m_lookup_map.find(address);
117
118 if (i == m_lookup_map.end())
119 return NULL;
120
121 Check* check = i->second;
122 assert(check != NULL);
123 return check;
124}
125
126void
127CheckTable::print(std::ostream& out) const
128{
129}