bpred_unit.cc (10785:f56c10663a01) | bpred_unit.cc (11321:02e930db812d) |
---|---|
1/* 2 * Copyright (c) 2011-2012, 2014 ARM Limited 3 * Copyright (c) 2010 The University of Edinburgh 4 * Copyright (c) 2012 Mark D. Hill and David A. Wood 5 * All rights reserved 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 401 unchanged lines hidden (view full) --- 410 pred_hist.front().seqNum > squashed_sn) { 411 if (pred_hist.front().usedRAS) { 412 DPRINTF(Branch, "[tid:%i]: Restoring top of RAS to: %i," 413 " target: %s.\n", tid, 414 pred_hist.front().RASIndex, pred_hist.front().RASTarget); 415 416 RAS[tid].restore(pred_hist.front().RASIndex, 417 pred_hist.front().RASTarget); | 1/* 2 * Copyright (c) 2011-2012, 2014 ARM Limited 3 * Copyright (c) 2010 The University of Edinburgh 4 * Copyright (c) 2012 Mark D. Hill and David A. Wood 5 * All rights reserved 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 401 unchanged lines hidden (view full) --- 410 pred_hist.front().seqNum > squashed_sn) { 411 if (pred_hist.front().usedRAS) { 412 DPRINTF(Branch, "[tid:%i]: Restoring top of RAS to: %i," 413 " target: %s.\n", tid, 414 pred_hist.front().RASIndex, pred_hist.front().RASTarget); 415 416 RAS[tid].restore(pred_hist.front().RASIndex, 417 pred_hist.front().RASTarget); |
418 } else if(pred_hist.front().wasCall && pred_hist.front().pushedRAS) { | 418 } else if (pred_hist.front().wasCall && pred_hist.front().pushedRAS) { |
419 // Was a call but predicated false. Pop RAS here 420 DPRINTF(Branch, "[tid: %i] Squashing" 421 " Call [sn:%i] PC: %s Popping RAS\n", tid, 422 pred_hist.front().seqNum, pred_hist.front().pc); 423 RAS[tid].pop(); 424 } 425 426 // This call should delete the bpHistory. --- 130 unchanged lines hidden --- | 419 // Was a call but predicated false. Pop RAS here 420 DPRINTF(Branch, "[tid: %i] Squashing" 421 " Call [sn:%i] PC: %s Popping RAS\n", tid, 422 pred_hist.front().seqNum, pred_hist.front().pc); 423 RAS[tid].pop(); 424 } 425 426 // This call should delete the bpHistory. --- 130 unchanged lines hidden --- |