mbox series

[00/12] next-cube: various tidy-ups and improvements

Message ID 20231215200009.346212-1-mark.cave-ayland@ilande.co.uk (mailing list archive)
Headers show
Series next-cube: various tidy-ups and improvements | expand

Message

Mark Cave-Ayland Dec. 15, 2023, 7:59 p.m. UTC
This series contains some tidy-ups/improvements for the next-cube machine with
the aim of bringing the code up-to-date with our latest coding guidelines.

The main aim of the series is to bring the memory accessors up-to-date with
the memory API and improve some of basic machine modelling. There are still
some future improvements that can be made: for example switching from DPRINTF
macros to trace events and proper modelling of the DMA controller, however
I've left these for now since they allow for easier comparison with Bryce's
original GSoC branch.

This series can be used in conjunction with my upcoming ESP rework series
which fixes up the ESP emulation enough to allow the next-cube machine to
load a kernel from disk and start executing it.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (12):
  next-cube.c: add dummy Ethernet register to allow diagnostic to
    timeout
  next-cube.c: don't pulse SCSI DMA IRQ upon reception of FLUSH command
  next-cube.c: update mmio_ops to properly use modern memory API
  next-cube.c: update scr_ops to properly use modern memory API
  next-cube.c: update and improve dma_ops
  next-cube.c: move static led variable to NeXTPC
  next-cube.c: move static phase variable to NextRtc
  next-cube.c: move LED logic to new next_scr2_led_update() function
  next-cube.c: move static old_scr2 variable to NeXTPC
  next-cube.c: remove val and size arguments from nextscr2_write()
  next-cube.c: replace sysmem with get_system_memory() in
    next_cube_init()
  next-cube.c: move machine MemoryRegions into NeXTState

 hw/m68k/next-cube.c | 531 +++++++++++++++++++-------------------------
 1 file changed, 231 insertions(+), 300 deletions(-)