dramsim2.cc (10405:7a618c07e663) | dramsim2.cc (10466:73b7549d979e) |
---|---|
1/* 2 * Copyright (c) 2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 63 unchanged lines hidden (view full) --- 72 Callback* cb = new MakeCallback<DRAMSim2Wrapper, 73 &DRAMSim2Wrapper::printStats>(wrapper); 74 registerExitCallback(cb); 75} 76 77void 78DRAMSim2::init() 79{ | 1/* 2 * Copyright (c) 2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 63 unchanged lines hidden (view full) --- 72 Callback* cb = new MakeCallback<DRAMSim2Wrapper, 73 &DRAMSim2Wrapper::printStats>(wrapper); 74 registerExitCallback(cb); 75} 76 77void 78DRAMSim2::init() 79{ |
80 AbstractMemory::init(); 81 |
|
80 if (!port.isConnected()) { 81 fatal("DRAMSim2 %s is unconnected!\n", name()); 82 } else { 83 port.sendRangeChange(); 84 } 85 86 if (system()->cacheLineSize() != wrapper.burstSize()) 87 fatal("DRAMSim2 burst size %d does not match cache line size %d\n", --- 325 unchanged lines hidden --- | 82 if (!port.isConnected()) { 83 fatal("DRAMSim2 %s is unconnected!\n", name()); 84 } else { 85 port.sendRangeChange(); 86 } 87 88 if (system()->cacheLineSize() != wrapper.burstSize()) 89 fatal("DRAMSim2 burst size %d does not match cache line size %d\n", --- 325 unchanged lines hidden --- |