summaryrefslogtreecommitdiff
path: root/src/dev/arm/hdlcd.hh
diff options
context:
space:
mode:
authorSudhanshu Jha <sudhanshu.jha@arm.com>2017-03-01 17:38:51 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-03-07 11:14:28 +0000
commit846a17308c424bf1203d6c29586fdcd7d7047493 (patch)
treec5730a3b0a7f80cc7d174b5e6b530d7d91dde0cc /src/dev/arm/hdlcd.hh
parent9dd54d10ab63c395b84bff31b5ff94b35c44e18f (diff)
downloadgem5-846a17308c424bf1203d6c29586fdcd7d7047493.tar.xz
dev, arm: Render HDLCD frames at a fixed rate in KVM
Use the new fast scan-out API in the PixelPump to render frames at a fixed frame rate in KVM mode. The refresh rate when running in KVM can be controlled by the virt_refresh_rate parameter. Change-Id: Ib3c78f174e3f8f4ca8a9b723c4e5d311a433b8aa Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/2242 Reviewed-by: Rahul Thakur <rjthakur@google.com>
Diffstat (limited to 'src/dev/arm/hdlcd.hh')
-rw-r--r--src/dev/arm/hdlcd.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dev/arm/hdlcd.hh b/src/dev/arm/hdlcd.hh
index acce6f191..4bca0bbbf 100644
--- a/src/dev/arm/hdlcd.hh
+++ b/src/dev/arm/hdlcd.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2013, 2015 ARM Limited
+ * Copyright (c) 2010-2013, 2015, 2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -116,6 +116,7 @@ class HDLcd: public AmbaDmaDevice
const AddrRangeList addrRanges;
const bool enableCapture;
const Addr pixelBufferSize;
+ const Tick virtRefreshRate;
protected: // Register handling
/** ARM HDLcd register offsets */
@@ -344,6 +345,10 @@ class HDLcd: public AmbaDmaDevice
HDLcd &parent;
};
+ /** Handler for fast frame refresh in KVM-mode */
+ void virtRefresh();
+ EventWrapper<HDLcd, &HDLcd::virtRefresh> virtRefreshEvent;
+
/** Helper to write out bitmaps */
Bitmap bmp;