hdlcd.cc (12086:069c529a76fd) hdlcd.cc (12232:20817121988b)
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"
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"
50#include "mem/packet.hh"
51#include "mem/packet_access.hh"
52#include "params/HDLcd.hh"
53#include "sim/system.hh"
54
55using std::vector;
56
57

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

80
81 command(0),
82
83 pixel_format(0),
84 red_select(0), green_select(0), blue_select(0),
85
86 virtRefreshEvent([this]{ virtRefresh(); }, name()),
87 // Other
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
88 bmp(&pixelPump.fb), pic(NULL), conv(PixelConverter::rgba8888_le),
89 imgFormat(p->frame_format), pic(NULL), conv(PixelConverter::rgba8888_le),
89 pixelPump(*this, *p->pxl_clk, p->pixel_chunk)
90{
91 if (vnc)
92 vnc->setFrameBuffer(&pixelPump.fb);
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);
93}
94
95HDLcd::~HDLcd()
96{
97}
98
99void
100HDLcd::regStats()

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

567 }
568
569 if (vnc)
570 vnc->setDirty();
571
572 if (enableCapture) {
573 if (!pic) {
574 pic = simout.create(
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(
575 csprintf("%s.framebuffer.bmp", sys->name()),
578 csprintf("%s.framebuffer.%s",
579 sys->name(), imgWriter->getImgExtension()),
576 true);
577 }
578
579 assert(pic);
580 pic->stream()->seekp(0);
580 true);
581 }
582
583 assert(pic);
584 pic->stream()->seekp(0);
581 bmp.write(*pic->stream());
585 imgWriter->write(*pic->stream());
582 }
583}
584
585void
586HDLcd::setInterrupts(uint32_t ints, uint32_t mask)
587{
588 const bool old_ints(intStatus());
589

--- 108 unchanged lines hidden ---
586 }
587}
588
589void
590HDLcd::setInterrupts(uint32_t ints, uint32_t mask)
591{
592 const bool old_ints(intStatus());
593

--- 108 unchanged lines hidden ---