[rtems-testing commit] pc386/console: alternative framebuffer implementation for cirrus GD5446 QEMU device

Joel Sherrill joel at rtems.org
Thu Sep 13 17:22:09 UTC 2012


Module:    rtems-testing
Branch:    master
Commit:    eca1a166384aa5a61d531a103766dfce95b7d299
Changeset: http://git.rtems.org/rtems-testing/commit/?id=eca1a166384aa5a61d531a103766dfce95b7d299

Author:    Pavel Pisa <pisa at cmp.felk.cvut.cz>
Date:      Thu Sep 13 12:25:35 2012 -0500

pc386/console: alternative framebuffer implementation for cirrus GD5446 QEMU device

Command-line option -D configures Cirrus GD5446 PCI
display adapter emulation in QEMU environment.
QEMU option

  -vga cirrus

Signed-off-by: Pavel Pisa <pisa at cmp.felk.cvut.cz>

---

 sim-scripts/pc386.in |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/sim-scripts/pc386.in b/sim-scripts/pc386.in
index bcda293..9c35cde 100644
--- a/sim-scripts/pc386.in
+++ b/sim-scripts/pc386.in
@@ -21,6 +21,7 @@ if [ ! -r ${runBSP} ] ; then
 fi
 bspNeedsDos2Unix="yes"
 bspRunsFailRandomly="yes"
+bspSupportsDisplayAdapter="yes"
 
 # Set the defaults based upon arguments given and do some error checking
 if [ X${QEMUDIR} == X ] ; then
@@ -69,11 +70,17 @@ runARGS()
   # -cpu 486
   # can also redirect to file with file:log/"`basename ${1} .exe`
   SERIAL_ARG="stdio"
+  if [ ${enable_display_adapter} = "no" ] ; then
+     GRAPHIC_ARG="-nographic"
+  else
+     GRAPHIC_ARG="-vga cirrus"
+  fi
 # core2duo with newer qemu for smp support
 # 486 or pentium for older qemu
   echo "-m 512 -boot a -cpu 486 \
        -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \
        -monitor null -nographic -serial ${SERIAL_ARG} --no-reboot"
+       -monitor null ${GRAPHIC_ARG} -serial ${SERIAL_ARG} --no-reboot"
 }
 
 checkBSPFaults()




More information about the vc mailing list