Prefetcher.cc (9475:736909f5c13b) | Prefetcher.cc (9507:d2ab6d889fc7) |
---|---|
1/* 2 * Copyright (c) 1999-2012 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; --- 243 unchanged lines hidden (view full) --- 252 DPRINTF(RubyPrefetcher, "Requesting prefetch for %s\n", line_addr); 253 m_controller->enqueuePrefetch(line_addr, stream->m_type); 254} 255 256uint32_t 257Prefetcher::getLRUindex(void) 258{ 259 uint32_t lru_index = 0; | 1/* 2 * Copyright (c) 1999-2012 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; --- 243 unchanged lines hidden (view full) --- 252 DPRINTF(RubyPrefetcher, "Requesting prefetch for %s\n", line_addr); 253 m_controller->enqueuePrefetch(line_addr, stream->m_type); 254} 255 256uint32_t 257Prefetcher::getLRUindex(void) 258{ 259 uint32_t lru_index = 0; |
260 Time lru_access = m_array[lru_index].m_use_time; | 260 Cycles lru_access = m_array[lru_index].m_use_time; |
261 262 for (uint32_t i = 0; i < m_num_streams; i++) { 263 if (!m_array[i].m_is_valid) { 264 return i; 265 } 266 if (m_array[i].m_use_time < lru_access) { 267 lru_access = m_array[i].m_use_time; 268 lru_index = i; --- 201 unchanged lines hidden --- | 261 262 for (uint32_t i = 0; i < m_num_streams; i++) { 263 if (!m_array[i].m_is_valid) { 264 return i; 265 } 266 if (m_array[i].m_use_time < lru_access) { 267 lru_access = m_array[i].m_use_time; 268 lru_index = i; --- 201 unchanged lines hidden --- |