[PATCH] pc386.in - allow graphic display emulation with qemu
Pavel Pisa
ppisa4lists at pikron.com
Wed Jun 20 17:33:34 UTC 2012
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 file changed, 7 insertions(+)
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()
--
1.7.10
More information about the devel
mailing list