From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Thomas Huth <huth@tuxfamily.org>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Laurent Vivier" <laurent@vivier.eu>
Subject: Re: [Qemu-devel] [PATCH v2 3/4] m68k: Add NeXTcube machine
Date: Sat, 29 Jun 2019 14:36:33 +0200 [thread overview]
Message-ID: <7321aa3f-3054-d8bd-84ee-b0070c5d61a4@redhat.com> (raw)
In-Reply-To: <074eb5c6-8a7f-1018-47f9-9801e0aba704@redhat.com>
On 6/29/19 2:26 PM, Philippe Mathieu-Daudé wrote:
> On 6/28/19 8:15 PM, Thomas Huth wrote:
>> It is still quite incomplete (no SCSI, no floppy emulation, no network,
>> etc.), but the firmware already shows up the debug monitor prompt in the
>> framebuffer display, so at least the very basics are already working.
>>
>> This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch at
>>
>> https://github.com/blanham/qemu-NeXT/blob/next-cube/hw/next-cube.c
>>
>> and altered quite a bit to fit the latest interface and coding conventions
>> of the current QEMU.
>>
>> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
>> ---
>> hw/m68k/Makefile.objs | 2 +-
>> hw/m68k/next-cube.c | 988 ++++++++++++++++++++++++++++++++++++
>> include/hw/m68k/next-cube.h | 38 ++
>> 3 files changed, 1027 insertions(+), 1 deletion(-)
>> create mode 100644 hw/m68k/next-cube.c
>>
>> diff --git a/hw/m68k/Makefile.objs b/hw/m68k/Makefile.objs
>> index 688002cac1..f25854730d 100644
>> --- a/hw/m68k/Makefile.objs
>> +++ b/hw/m68k/Makefile.objs
>> @@ -1,3 +1,3 @@
>> obj-$(CONFIG_AN5206) += an5206.o mcf5206.o
>> obj-$(CONFIG_MCF5208) += mcf5208.o mcf_intc.o
>> -obj-$(CONFIG_NEXTCUBE) += next-kbd.o
>> +obj-$(CONFIG_NEXTCUBE) += next-kbd.o next-cube.o
>> diff --git a/hw/m68k/next-cube.c b/hw/m68k/next-cube.c
>> new file mode 100644
>> index 0000000000..700d386fb9
>> --- /dev/null
>> +++ b/hw/m68k/next-cube.c
>> @@ -0,0 +1,988 @@
>> +/*
>> + * NeXT Cube System Driver
>> + *
>> + * Copyright (c) 2011 Bryce Lanham
>> + *
>> + * This code is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License as published
>> + * by the Free Software Foundation; either version 2 of the License,
>> + * or (at your option) any later version.
>> + */
>> +
>> +#include "qemu/osdep.h"
>> +#include "exec/hwaddr.h"
>> +#include "exec/address-spaces.h"
>> +#include "sysemu/sysemu.h"
>> +#include "sysemu/qtest.h"
>> +#include "hw/hw.h"
>> +#include "hw/m68k/next-cube.h"
>> +#include "hw/boards.h"
>> +#include "hw/loader.h"
>> +#include "hw/scsi/esp.h"
>> +#include "hw/sysbus.h"
>> +#include "hw/char/escc.h" /* ZILOG 8530 Serial Emulation */
>> +#include "hw/block/fdc.h"
>> +#include "qapi/error.h"
>> +#include "ui/console.h"
>> +#include "target/m68k/cpu.h"
>> +
>> +/* #define DEBUG_NEXT */
>> +#ifdef DEBUG_NEXT
>> +#define DPRINTF(fmt, ...) \
>> + do { printf("NeXT: " fmt , ## __VA_ARGS__); } while (0)
>> +#else
>> +#define DPRINTF(fmt, ...) do { } while (0)
>> +#endif
>> +
>> +#define TYPE_NEXT_MACHINE MACHINE_TYPE_NAME("next-cube")
>> +#define NEXT_MACHINE(obj) OBJECT_CHECK(NeXTState, (obj), TYPE_NEXT_MACHINE)
>> +
>> +#define ENTRY 0x0100001e
>> +#define RAM_SIZE 0x4000000
>> +#define ROM_FILE "rom66.bin"
>
> Where can we find this file to test your work?
I found one:
http://www.nextcomputers.org/NeXTfiles/Software/ROM_Files/68040_Non-Turbo_Chipset/
I have to say I'm impressed :)
Let me share this comment from
http://old-computers.com/museum/computer.asp?c=277
"did you know the 040 nextcube was actually used for graphics design at
id software at the time doom was made?"
=)
next prev parent reply other threads:[~2019-06-29 12:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-28 18:15 [Qemu-devel] [PATCH v2 0/4] m68k: Add basic support for the NeXTcube machine Thomas Huth
2019-06-28 18:15 ` [Qemu-devel] [PATCH v2 1/4] m68k: Add NeXTcube framebuffer device emulation Thomas Huth
2019-06-29 11:53 ` Philippe Mathieu-Daudé
2019-06-29 17:45 ` Thomas Huth
2019-07-02 16:01 ` Philippe Mathieu-Daudé
2019-06-28 18:15 ` [Qemu-devel] [PATCH v2 2/4] m68k: Add NeXTcube keyboard device Thomas Huth
2019-06-29 12:02 ` Philippe Mathieu-Daudé
2019-07-02 10:45 ` Thomas Huth
2019-06-28 18:15 ` [Qemu-devel] [PATCH v2 3/4] m68k: Add NeXTcube machine Thomas Huth
2019-06-29 12:26 ` Philippe Mathieu-Daudé
2019-06-29 12:36 ` Philippe Mathieu-Daudé [this message]
2019-07-02 17:43 ` Thomas Huth
2019-07-03 17:00 ` Thomas Huth
2019-07-03 17:36 ` Philippe Mathieu-Daudé
2019-06-28 18:15 ` [Qemu-devel] [PATCH v2 4/4] m68k: Add an entry for the NeXTcube machine to the MAINTAINERS file Thomas Huth
2019-06-29 12:27 ` Philippe Mathieu-Daudé
2019-06-29 14:40 ` [Qemu-devel] [PATCH v2 0/4] m68k: Add basic support for the NeXTcube machine Philippe Mathieu-Daudé
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=7321aa3f-3054-d8bd-84ee-b0070c5d61a4@redhat.com \
--to=philmd@redhat.com \
--cc=f4bug@amsat.org \
--cc=huth@tuxfamily.org \
--cc=laurent@vivier.eu \
--cc=peter.maydell@linaro.org \
--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).