CheckTable.cc (8932:1b2c17565ac8) | CheckTable.cc (9108:ad76a669e9d9) |
---|---|
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 --- 92 unchanged lines hidden (view full) --- 101 m_lookup_map[Address(address.getAddress() + i)] = check_ptr; 102 } 103 m_check_vector.push_back(check_ptr); 104} 105 106Check* 107CheckTable::getRandomCheck() 108{ | 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 --- 92 unchanged lines hidden (view full) --- 101 m_lookup_map[Address(address.getAddress() + i)] = check_ptr; 102 } 103 m_check_vector.push_back(check_ptr); 104} 105 106Check* 107CheckTable::getRandomCheck() 108{ |
109 assert(m_check_vector.size() > 0); |
|
109 return m_check_vector[random() % m_check_vector.size()]; 110} 111 112Check* 113CheckTable::getCheck(const Address& address) 114{ 115 DPRINTF(RubyTest, "Looking for check by address: %s", address); 116 --- 14 unchanged lines hidden --- | 110 return m_check_vector[random() % m_check_vector.size()]; 111} 112 113Check* 114CheckTable::getCheck(const Address& address) 115{ 116 DPRINTF(RubyTest, "Looking for check by address: %s", address); 117 --- 14 unchanged lines hidden --- |