Add basic Z80 CPU support
authorSergey Belyashov <Sergey.Belyashov@gmail.com>
Sat, 17 Jul 2021 14:19:06 +0000 (10:19 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 17 Jul 2021 14:23:54 +0000 (10:23 -0400)
commit28b48aa109bac5a8b0782ad640c1f0a543cac59a
tree8d827e938d68ac10b61fa0f15b721d4150118ec2
parent97f3dfbc4fe0db872335f3be66b9771ae9321ef9
Add basic Z80 CPU support

Supported ISAs:
- Z80 (all undocumented instructions)
- Z180
- eZ80 (Z80 mode only)

Datasheets:
Z80: https://www.zilog.com/manage_directlink.php?filepath=docs/z80/um0080&extn=.pdf
Z180: https://www.zilog.com/manage_directlink.php?filepath=docs/z180/ps0140&extn=.pdf
eZ80: http://www.zilog.com/force_download.php?filepath=YUhSMGNEb3ZMM2QzZHk1NmFXeHZaeTVqYjIwdlpHOWpjeTlWVFRBd056Y3VjR1Jt

To debug Z80 programs using GDB you must configure and embed
z80-stub.c to your program (SDCC compiler is required). Or
you may use some simulator with GDB support.

gdb/ChangeLog:

* Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
* NEWS: Mention z80 support.
* configure.tgt: Handle z80*.
* features/Makefile (XMLTOC): Add z80.xml.
* features/z80-cpu.xml: New.
* features/z80.c: Generate.
* features/z80.xml: New.
* z80-tdep.c: New file.
* z80-tdep.h: New file.

gdb/stubs/ChangeLog:

* z80-stub.c: New file.

Change-Id: Id0b7a6e210c3f93c6853c5e3031b7bcee47d0db9
12 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/configure.tgt
gdb/features/Makefile
gdb/features/z80-cpu.xml [new file with mode: 0644]
gdb/features/z80.c [new file with mode: 0644]
gdb/features/z80.xml [new file with mode: 0644]
gdb/stubs/ChangeLog
gdb/stubs/z80-stub.c [new file with mode: 0644]
gdb/z80-tdep.c [new file with mode: 0644]
gdb/z80-tdep.h [new file with mode: 0644]
This page took 0.024896 seconds and 4 git commands to generate.