CacheMemory.cc (10314:94b6b28fc968) | CacheMemory.cc (10919:80069a602c83) |
---|---|
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; --- 39 unchanged lines hidden (view full) --- 48CacheMemory * 49RubyCacheParams::create() 50{ 51 return new CacheMemory(this); 52} 53 54CacheMemory::CacheMemory(const Params *p) 55 : SimObject(p), | 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; --- 39 unchanged lines hidden (view full) --- 48CacheMemory * 49RubyCacheParams::create() 50{ 51 return new CacheMemory(this); 52} 53 54CacheMemory::CacheMemory(const Params *p) 55 : SimObject(p), |
56 dataArray(p->dataArrayBanks, p->dataAccessLatency, p->start_index_bit), 57 tagArray(p->tagArrayBanks, p->tagAccessLatency, p->start_index_bit) | 56 dataArray(p->dataArrayBanks, p->dataAccessLatency, 57 p->start_index_bit, p->ruby_system), 58 tagArray(p->tagArrayBanks, p->tagAccessLatency, 59 p->start_index_bit, p->ruby_system) |
58{ 59 m_cache_size = p->size; 60 m_latency = p->latency; 61 m_cache_assoc = p->assoc; 62 m_policy = p->replacement_policy; 63 m_start_index_bit = p->start_index_bit; 64 m_is_instruction_only_cache = p->is_icache; 65 m_resource_stalls = p->resourceStalls; --- 500 unchanged lines hidden --- | 60{ 61 m_cache_size = p->size; 62 m_latency = p->latency; 63 m_cache_assoc = p->assoc; 64 m_policy = p->replacement_policy; 65 m_start_index_bit = p->start_index_bit; 66 m_is_instruction_only_cache = p->is_icache; 67 m_resource_stalls = p->resourceStalls; --- 500 unchanged lines hidden --- |