1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 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; --- 14 unchanged lines hidden (view full) --- 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Kevin Lim 29 */ 30 |
31#include "base/intmath.hh" |
32#include "base/trace.hh" 33#include "cpu/o3/store_set.hh" 34 35StoreSet::StoreSet(int _SSIT_size, int _LFST_size) 36 : SSITSize(_SSIT_size), LFSTSize(_LFST_size) 37{ 38 DPRINTF(StoreSet, "StoreSet: Creating store set object.\n"); 39 DPRINTF(StoreSet, "StoreSet: SSIT size: %i, LFST size: %i.\n", 40 SSITSize, LFSTSize); 41 |
42 if (!isPowerOf2(SSITSize)) { 43 fatal("Invalid SSIT size!\n"); 44 } 45 |
46 SSIT.resize(SSITSize); 47 48 validSSIT.resize(SSITSize); 49 50 for (int i = 0; i < SSITSize; ++i) 51 validSSIT[i] = false; 52 |
53 if (!isPowerOf2(LFSTSize)) { 54 fatal("Invalid LFST size!\n"); 55 } 56 |
57 LFST.resize(LFSTSize); 58 59 validLFST.resize(LFSTSize); 60 61 for (int i = 0; i < LFSTSize; ++i) { 62 validLFST[i] = false; 63 LFST[i] = 0; 64 } --- 259 unchanged lines hidden (view full) --- 324 } 325 326 for (int i = 0; i < LFSTSize; ++i) { 327 validLFST[i] = false; 328 } 329 330 storeList.clear(); 331} |
332 333void 334StoreSet::dump() 335{ 336 cprintf("storeList.size(): %i\n", storeList.size()); 337 SeqNumMapIt store_list_it = storeList.begin(); 338 339 int num = 0; 340 341 while (store_list_it != storeList.end()) { 342 cprintf("%i: [sn:%lli] SSID:%i\n", 343 num, (*store_list_it).first, (*store_list_it).second); 344 num++; 345 store_list_it++; 346 } 347} |