pl111.cc (10839:10cac0f0f419) | pl111.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2010-2012, 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 --- 533 unchanged lines hidden (view full) --- 542 if (dmaPendingNum > (maxOutstandingDma - waterMark)) 543 return; 544 545 if (!fillFifoEvent.scheduled()) 546 schedule(fillFifoEvent, clockEdge()); 547} 548 549void | 1/* 2 * Copyright (c) 2010-2012, 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 --- 533 unchanged lines hidden (view full) --- 542 if (dmaPendingNum > (maxOutstandingDma - waterMark)) 543 return; 544 545 if (!fillFifoEvent.scheduled()) 546 schedule(fillFifoEvent, clockEdge()); 547} 548 549void |
550Pl111::serialize(std::ostream &os) | 550Pl111::serialize(CheckpointOut &cp) const |
551{ 552 DPRINTF(PL111, "Serializing ARM PL111\n"); 553 554 uint32_t lcdTiming0_serial = lcdTiming0; 555 SERIALIZE_SCALAR(lcdTiming0_serial); 556 557 uint32_t lcdTiming1_serial = lcdTiming1; 558 SERIALIZE_SCALAR(lcdTiming1_serial); --- 69 unchanged lines hidden (view full) --- 628 SERIALIZE_SCALAR(int_event_time); 629 630 vector<Tick> dma_done_event_tick; 631 dma_done_event_tick.resize(maxOutstandingDma); 632 for (int x = 0; x < maxOutstandingDma; x++) { 633 dma_done_event_tick[x] = dmaDoneEventAll[x].scheduled() ? 634 dmaDoneEventAll[x].when() : 0; 635 } | 551{ 552 DPRINTF(PL111, "Serializing ARM PL111\n"); 553 554 uint32_t lcdTiming0_serial = lcdTiming0; 555 SERIALIZE_SCALAR(lcdTiming0_serial); 556 557 uint32_t lcdTiming1_serial = lcdTiming1; 558 SERIALIZE_SCALAR(lcdTiming1_serial); --- 69 unchanged lines hidden (view full) --- 628 SERIALIZE_SCALAR(int_event_time); 629 630 vector<Tick> dma_done_event_tick; 631 dma_done_event_tick.resize(maxOutstandingDma); 632 for (int x = 0; x < maxOutstandingDma; x++) { 633 dma_done_event_tick[x] = dmaDoneEventAll[x].scheduled() ? 634 dmaDoneEventAll[x].when() : 0; 635 } |
636 arrayParamOut(os, "dma_done_event_tick", dma_done_event_tick); | 636 SERIALIZE_CONTAINER(dma_done_event_tick); |
637} 638 639void | 637} 638 639void |
640Pl111::unserialize(Checkpoint *cp, const std::string §ion) | 640Pl111::unserialize(CheckpointIn &cp) |
641{ 642 DPRINTF(PL111, "Unserializing ARM PL111\n"); 643 644 uint32_t lcdTiming0_serial; 645 UNSERIALIZE_SCALAR(lcdTiming0_serial); 646 lcdTiming0 = lcdTiming0_serial; 647 648 uint32_t lcdTiming1_serial; --- 77 unchanged lines hidden (view full) --- 726 schedule(intEvent, int_event_time); 727 if (read_event_time) 728 schedule(readEvent, read_event_time); 729 if (fill_fifo_event_time) 730 schedule(fillFifoEvent, fill_fifo_event_time); 731 732 vector<Tick> dma_done_event_tick; 733 dma_done_event_tick.resize(maxOutstandingDma); | 641{ 642 DPRINTF(PL111, "Unserializing ARM PL111\n"); 643 644 uint32_t lcdTiming0_serial; 645 UNSERIALIZE_SCALAR(lcdTiming0_serial); 646 lcdTiming0 = lcdTiming0_serial; 647 648 uint32_t lcdTiming1_serial; --- 77 unchanged lines hidden (view full) --- 726 schedule(intEvent, int_event_time); 727 if (read_event_time) 728 schedule(readEvent, read_event_time); 729 if (fill_fifo_event_time) 730 schedule(fillFifoEvent, fill_fifo_event_time); 731 732 vector<Tick> dma_done_event_tick; 733 dma_done_event_tick.resize(maxOutstandingDma); |
734 arrayParamIn(cp, section, "dma_done_event_tick", dma_done_event_tick); | 734 UNSERIALIZE_CONTAINER(dma_done_event_tick); |
735 dmaDoneEventFree.clear(); 736 for (int x = 0; x < maxOutstandingDma; x++) { 737 if (dma_done_event_tick[x]) 738 schedule(dmaDoneEventAll[x], dma_done_event_tick[x]); 739 else 740 dmaDoneEventFree.push_back(&dmaDoneEventAll[x]); 741 } 742 assert(maxOutstandingDma - dmaDoneEventFree.size() == dmaPendingNum); --- 37 unchanged lines hidden --- | 735 dmaDoneEventFree.clear(); 736 for (int x = 0; x < maxOutstandingDma; x++) { 737 if (dma_done_event_tick[x]) 738 schedule(dmaDoneEventAll[x], dma_done_event_tick[x]); 739 else 740 dmaDoneEventFree.push_back(&dmaDoneEventAll[x]); 741 } 742 assert(maxOutstandingDma - dmaDoneEventFree.size() == dmaPendingNum); --- 37 unchanged lines hidden --- |