qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice.bellard@free.fr>
To: Johan Rydberg <jrydberg@night.trouble.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu vga.c
Date: Wed, 27 Aug 2003 19:39:15 +0200	[thread overview]
Message-ID: <3F4CECC3.2090507@free.fr> (raw)
In-Reply-To: 20030827190358.5c241b61.jrydberg@night.trouble.net

Johan Rydberg wrote:
> Fabrice Bellard <fabrice.bellard@free.fr> wrote:
> 
> : It is currently fast enough to have a usable PC emulator. Many DOS games 
> : are usable. It should be faster than the bochs emulation but slightly 
> : slower than the dosemu one. This VGA emulation code is more accurate 
> : than either bochs or dosemu (all VGA modes, including non standard ones 
> : (i.e. the ones not supported by int $0x10) should work), but of course 
> : more testing is needed.
> 
> Sounds great.  Maybe you could show us deadly being some nice screenshots?

If I have the time, the next release will really support VGA emulation 
so that you can actually try it. I'll try to put screenshots.

> : There are some optimisations pending (VGA memory accesses could be 
> : faster, but I wanted first to have a simple code). The S3 specific code 
> : the SVGA emulation is not finished. It will be mainly used to launch X11 
> : or Windows in high resolution modes. I also have to modify the LGPL'ed 
> : vga bios to add S3 VESA support.
> 
> I saw that you trap all writings to the graphics memory.  Is this a
> must, or can't you just store the data in a buffer and process it according
> to the current mode when the display should be updated?

Correct vga emulation requires that you trap all memory writes and read 
as in planar mode complex binary operations can be performed by the VGA 
card on the 4 planes simultaneously (when writing or reading one byte, 
the VGA card writes or reads 4 bytes simultaneously). Even in "chain4" 
mode which is the simplest memory mapping (linear VGA memory access), 
writes to some memory planes can be disabled. My upcoming optimizations 
will consist in using specialized memory access functions for each case, 
and by mapping memory directly when possible (it is possible only if 
chain4 mode is activated and if all 4 VGA planes are enabled).

Fabrice.

  reply	other threads:[~2003-08-27 18:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 20:33 [Qemu-devel] qemu vga.c Fabrice Bellard
2003-08-26 15:15 ` Johan Rydberg
2003-08-26 19:20   ` Fabrice Bellard
2003-08-27 17:03     ` Johan Rydberg
2003-08-27 17:39       ` Fabrice Bellard [this message]
2003-08-30 14:11     ` [Qemu-devel] qemu current (was: qemu vga.c) Nicolas Ollinger
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 21:29 [Qemu-devel] qemu vga.c Fabrice Bellard
2003-10-30 22:10 Fabrice Bellard
2003-10-30 23:27 ` Chad Page
2003-10-31  0:01   ` Leigh Dyer
2003-10-31 19:57     ` Stefano Marinelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F4CECC3.2090507@free.fr \
    --to=fabrice.bellard@free.fr \
    --cc=jrydberg@night.trouble.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).