1/* 2 * Copyright (c) 2010-2013, 2015, 2017 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 --- 33 unchanged lines hidden (view full) --- 42 43#include "base/output.hh" 44#include "base/trace.hh" 45#include "base/vnc/vncinput.hh" 46#include "debug/Checkpoint.hh" 47#include "debug/HDLcd.hh" 48#include "dev/arm/amba_device.hh" 49#include "dev/arm/base_gic.hh" |
50#include "enums/ImageFormat.hh" |
51#include "mem/packet.hh" 52#include "mem/packet_access.hh" 53#include "params/HDLcd.hh" 54#include "sim/system.hh" 55 56using std::vector; 57 58 --- 22 unchanged lines hidden (view full) --- 81 82 command(0), 83 84 pixel_format(0), 85 red_select(0), green_select(0), blue_select(0), 86 87 virtRefreshEvent([this]{ virtRefresh(); }, name()), 88 // Other |
89 imgFormat(p->frame_format), pic(NULL), conv(PixelConverter::rgba8888_le), |
90 pixelPump(*this, *p->pxl_clk, p->pixel_chunk) 91{ 92 if (vnc) 93 vnc->setFrameBuffer(&pixelPump.fb); |
94 95 imgWriter = createImgWriter(imgFormat, &pixelPump.fb); |
96} 97 98HDLcd::~HDLcd() 99{ 100} 101 102void 103HDLcd::regStats() --- 466 unchanged lines hidden (view full) --- 570 } 571 572 if (vnc) 573 vnc->setDirty(); 574 575 if (enableCapture) { 576 if (!pic) { 577 pic = simout.create( |
578 csprintf("%s.framebuffer.%s", 579 sys->name(), imgWriter->getImgExtension()), |
580 true); 581 } 582 583 assert(pic); 584 pic->stream()->seekp(0); |
585 imgWriter->write(*pic->stream()); |
586 } 587} 588 589void 590HDLcd::setInterrupts(uint32_t ints, uint32_t mask) 591{ 592 const bool old_ints(intStatus()); 593 --- 108 unchanged lines hidden --- |