atomic.cc (10563:755b18321206) atomic.cc (10596:1eec33d2fc52)
1/*
1/*
2 * Copyright 2014 Google, Inc.
2 * Copyright (c) 2012-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
9 * licensed hereunder. You may use the software subject to the license

--- 503 unchanged lines hidden (view full) ---

513 DPRINTF(SimpleCPU, "Tick\n");
514
515 Tick latency = 0;
516
517 for (int i = 0; i < width || locked; ++i) {
518 numCycles++;
519 ppCycles->notify(1);
520
3 * Copyright (c) 2012-2013 ARM Limited
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating
9 * to a hardware implementation of the functionality of the software
10 * licensed hereunder. You may use the software subject to the license

--- 503 unchanged lines hidden (view full) ---

514 DPRINTF(SimpleCPU, "Tick\n");
515
516 Tick latency = 0;
517
518 for (int i = 0; i < width || locked; ++i) {
519 numCycles++;
520 ppCycles->notify(1);
521
521 if (!curStaticInst || !curStaticInst->isDelayedCommit())
522 if (!curStaticInst || !curStaticInst->isDelayedCommit()) {
522 checkForInterrupts();
523 checkForInterrupts();
524 checkPcEventQueue();
525 }
523
526
524 checkPcEventQueue();
525 // We must have just got suspended by a PC event
526 if (_status == Idle) {
527 tryCompleteDrain();
528 return;
529 }
530
531 Fault fault = NoFault;
532

--- 124 unchanged lines hidden ---
527 // We must have just got suspended by a PC event
528 if (_status == Idle) {
529 tryCompleteDrain();
530 return;
531 }
532
533 Fault fault = NoFault;
534

--- 124 unchanged lines hidden ---