qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Z80 emulation updated again!


From: Stuart Brady
Subject: [Qemu-devel] [PATCH] Z80 emulation updated again!
Date: Sun, 31 May 2009 16:20:32 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi!

Here's an update of the Z80 system emulator, which currently emulates
the ZX Spectrum only.  Significant changes since Ulrich Hecht's updated
version are as follows:

 * Converted CPU emulation core to TCG
 * Fixed emulation of 'bright' display attribute
 * Fixed display output for pixel formats besides 32-bit RGB
 * Improved keyboard handling, with support for cursor keys, etc.
 * Removed dead code
 * Now supports libspectrum 0.5 (for snapshot loading)
 * Numerous cleanups

The emulation has not yet been optimised, but should achieve something
between 100 and 200 times the performance of real hardware.

Thanks go to Ulrich for adding support for snapshot loading, and for
porting the 'HALT' hack from xz80, in his updated version!

BTW, I have also written some experimental 128K emulation -- however,
this only achieves ~10 times the speed of real hardware, as the 128K
makes heavy use of bank switching.

I can split the patch up if wanted, although only 44 insertions are in
existing files.

Cheers,
-- 
Stuart Brady

diffstat:
 Makefile                        |    3 
 Makefile.target                 |   13 
 configure                       |   16 
 cpu-exec.c                      |   10 
 dis-asm.h                       |    1 
 disas.c                         |    2 
 hw/pixel_ops_dup.h              |   61 +
 hw/zx_glyphs.h                  |   37 
 hw/zx_key_template.h            |   50 +
 hw/zx_spectrum.c                |  443 +++++++++
 hw/zx_video.c                   |  375 ++++++++
 hw/zx_video.h                   |    8 
 target-z80/TODO                 |   13 
 target-z80/cpu.h                |  259 +++++
 target-z80/exec.h               |  196 ++++
 target-z80/genreg_template.h    |   65 +
 target-z80/genreg_template_af.h |   83 +
 target-z80/helper.c             |  211 ++++
 target-z80/helper.h             |   89 +
 target-z80/machine.c            |   11 
 target-z80/op_helper.c          |  947 ++++++++++++++++++++
 target-z80/translate.c          | 1834 ++++++++++++++++++++++++++++++++++++++++
 z80-dis.c                       |  621 +++++++++++++
 23 files changed, 5347 insertions(+), 1 deletion(-)

Attachment: qemu-z80.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]