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 DPRINTF(RubyTest, "Looking for check by address: %s", address); |
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} |