flash_device.cc (10913:38dbdeea7f1f) flash_device.cc (11179:8e240cd8132a)
1/*
2 * Copyright (c) 2013-2015 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

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

600
601/**
602 * Checkdrain; needed to enable checkpoints
603 */
604
605void
606FlashDevice::checkDrain()
607{
1/*
2 * Copyright (c) 2013-2015 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

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

600
601/**
602 * Checkdrain; needed to enable checkpoints
603 */
604
605void
606FlashDevice::checkDrain()
607{
608 if (drainState() == DrainState::Draining)
608 if (drainState() != DrainState::Draining)
609 return;
610
611 if (planeEvent.when() > curTick()) {
612 DPRINTF(Drain, "Flash device is still draining\n");
613 } else {
614 DPRINTF(Drain, "Flash device is done draining\n");
615 signalDrainDone();
616 }
617}
609 return;
610
611 if (planeEvent.when() > curTick()) {
612 DPRINTF(Drain, "Flash device is still draining\n");
613 } else {
614 DPRINTF(Drain, "Flash device is done draining\n");
615 signalDrainDone();
616 }
617}