From fd16487b71e7b4e0c2df71d77bd2da947fdee2e9 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 28 Sep 2017 11:50:07 +0100 Subject: dev: Using Configurable image writer in HDLcd The fixed image writer (which was dumping .bmp images only) has been replaced by the configurable one in HDLcd device. Default format is Auto, which gives gem5 the freedom to choose the format it prefers. Change-Id: I0643266556bb10b43cdebd628f6daa2cd5e105dd Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/5183 Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/dev/arm/RealView.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dev/arm/RealView.py') diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 51aa1cf3c..08145bf66 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -56,6 +56,7 @@ from Gic import * from EnergyCtrl import EnergyCtrl from ClockDomain import SrcClockDomain from SubSystem import SubSystem +from Graphics import ImageFormat # Platforms with KVM support should generally use in-kernel GIC # emulation. Use a GIC model that automatically switches between @@ -298,7 +299,10 @@ class HDLcd(AmbaDmaDevice): "selector order in some kernels") workaround_dma_line_count = Param.Bool(True, "Workaround incorrect " "DMA line count (off by 1)") - enable_capture = Param.Bool(True, "capture frame to system.framebuffer.bmp") + enable_capture = Param.Bool(True, "capture frame to " + "system.framebuffer.{extension}") + frame_format = Param.ImageFormat("Auto", + "image format of the captured frame") pixel_buffer_size = Param.MemorySize32("2kB", "Size of address range") -- cgit v1.2.3