develop them and release in my website for private use.)
I thank members for reviewing my codes and giving comments.
Thanks,
TAKEDA, toshiya
TAKEDA, toshiya wrote:
>Dear members,
>
>Sorry too late reply for comments of previous patch.
>(I was busy in these months for my business...)
Hi,
Gerd Hoffmann wrote:
>On 01/04/10 21:34, Anthony Liguori wrote:
>> On 12/22/2009 11:40 AM, TAKEDA, toshiya wrote:
>
>> I don't think we are really that far from being able to create an NEC
>> PC-9821 based on careful use of -device and disabling default device
.
It was added for 80286, but was used on PC-98 with 80386 and later.
(For example for checking of over 1mb memory in hardware initialization bios.)
Thanks,
TAKEDA, toshiya
>
>Regards,
>
>Anthony Liguori
>
>
>
Dear Jamie,
Thank you very much for comment.
Jamie Lokier wrote:
>TAKEDA, toshiya wrote:
>> @@ -940,7 +966,15 @@ void cpu_x86_set_a20(CPUX86State *env, int a20_state)
>> /* when a20 is changed, all the MMU mappings are invalid, so
>> we
Signed-off-by: TAKEDA, toshiya
---
hw/ne2000-isa.c | 71 --
1 files changed, 63 insertions(+), 8 deletions(-)
diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c
index 03a5a1f..4a1733b 100644
--- a/hw/ne2000-isa.c
+++ b/hw/ne2000-isa.c
@@ -61,6
Signed-off-by: TAKEDA, toshiya
---
hw/ide/core.c | 13 +++--
hw/ide/internal.h |1 +
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/hw/ide/core.c b/hw/ide/core.c
index 76c3820..4c77415 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -1801,8 +1801,10 @@ void
Signed-off-by: TAKEDA, toshiya
---
hw/i8259.c | 63 ---
1 files changed, 55 insertions(+), 8 deletions(-)
diff --git a/hw/i8259.c b/hw/i8259.c
index 3de22e3..eaf75dd 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -59,6 +59,7 @@ struct
Signed-off-by: TAKEDA, toshiya
---
hw/i8254.c | 57 +++--
1 files changed, 51 insertions(+), 6 deletions(-)
diff --git a/hw/i8254.c b/hw/i8254.c
index faaa884..155f879 100644
--- a/hw/i8254.c
+++ b/hw/i8254.c
@@ -47,6 +47,7 @@ typedef struct
Signed-off-by: TAKEDA, toshiya
---
hw/pcspk.c | 32 +++-
1 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/hw/pcspk.c b/hw/pcspk.c
index 26a0ecb..4a21aae 100644
--- a/hw/pcspk.c
+++ b/hw/pcspk.c
@@ -38,6 +38,7 @@ typedef struct {
QEMUSoundCard
Signed-off-by: TAKEDA, toshiya
---
hw/pc.c |4 ++--
hw/pc.h |7 +--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index db7d58e..ddefb7f 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -67,7 +67,7 @@
static fdctrl_t *floppy_controller;
static RTCState
Signed-off-by: TAKEDA, toshiya
---
hw/fdc.c | 591 --
hw/fdc.h |1 +
hw/hw.h | 12 ++
3 files changed, 472 insertions(+), 132 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index 0579b03..3041a22 100644
--- a/hw/fdc.c
+++ b/hw
Signed-off-by: TAKEDA, toshiya
---
hw/ide.h |3 +
hw/ide/pc98.c | 288 +
2 files changed, 291 insertions(+), 0 deletions(-)
create mode 100644 hw/ide/pc98.c
diff --git a/hw/ide.h b/hw/ide.h
index 0e7d540..0a94bac 100644
--- a/hw
Signed-off-by: TAKEDA, toshiya
---
hw/pc98sys.c | 482 ++
1 files changed, 482 insertions(+), 0 deletions(-)
create mode 100644 hw/pc98sys.c
diff --git a/hw/pc98sys.c b/hw/pc98sys.c
new file mode 100644
index 000..43a910a
--- /dev
Signed-off-by: TAKEDA, toshiya
---
hw/pc98kbd.c | 395 ++
1 files changed, 395 insertions(+), 0 deletions(-)
create mode 100644 hw/pc98kbd.c
diff --git a/hw/pc98kbd.c b/hw/pc98kbd.c
new file mode 100644
index 000..04e1fa5
--- /dev
Signed-off-by: TAKEDA, toshiya
---
hw/pc98.c | 317 +
hw/pc98.h | 65 +
2 files changed, 382 insertions(+), 0 deletions(-)
create mode 100644 hw/pc98.c
create mode 100644 hw/pc98.h
diff --git a/hw/pc98.c b/hw/pc98.c
Dear members,
Sorry too late reply for comments of previous patch.
(I was busy in these months for my business...)
This is new patch.
Change from v3 to v4:
- use vmstate for save/load state
- remove sound device with MAME opna sound core
Thanks,
TAKEDA, toshiya
Signed-off-by: TAKEDA, toshiya
---
hw/dma.c | 186 --
hw/isa.h |1 +
2 files changed, 181 insertions(+), 6 deletions(-)
diff --git a/hw/dma.c b/hw/dma.c
index 44c642e..28219e7 100644
--- a/hw/dma.c
+++ b/hw/dma.c
@@ -45,6 +45,8
Signed-off-by: TAKEDA, toshiya
---
hw/pc98mouse.c | 266
1 files changed, 266 insertions(+), 0 deletions(-)
create mode 100644 hw/pc98mouse.c
diff --git a/hw/pc98mouse.c b/hw/pc98mouse.c
new file mode 100644
index 000..0868180
Signed-off-by: TAKEDA, toshiya
---
Makefile.target |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 7c1f30c..18c8428 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -195,6 +195,7 @@ obj-i386-y += cirrus_vga.o apic.o ioapic.o
Signed-off-by: TAKEDA, toshiya
---
sysemu.h |3 +++
vl.c | 32
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/sysemu.h b/sysemu.h
index 9d80bb2..51c7ac8 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -45,13 +45,16 @@ void cpu_enable_ticks(void
Signed-off-by: TAKEDA, toshiya
---
hw/pc98mem.c | 861 ++
1 files changed, 861 insertions(+), 0 deletions(-)
create mode 100644 hw/pc98mem.c
diff --git a/hw/pc98mem.c b/hw/pc98mem.c
new file mode 100644
index 000..36a60cc
--- /dev
Signed-off-by: TAKEDA, toshiya
---
target-i386/cpu.h|3 +++
target-i386/helper.c | 46 --
2 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index f3834b3..271cc20 100644
--- a/target-i386
ym2608intf.c and .h (original module name is 2608intf)
If it is refused, it is easy to remove them in the patch.
Makefile.target:
-obj-i386-y += ay8910.o ymdeltat.o fm.o ym2608intf.o pc98sound.o
hw/pc98.c
#ifdef HAS_AUDIO
pcspk_audio_init(isa_irq);
-pc98_sound_init(isa_irq);
#endif
Thanks,
TAKEDA, toshiya
diff --git a/qemu/hw/ay8910.c b/qemu/hw/ay8910.c
new file mode 100644
index 000..d371023
--- /dev/null
+++ b/qemu/hw/ay8910.c
@@ -0,0 +1,733 @@
+/***
+
+ ay8910.c
+
+
+ Emulation of the AY-3-8910 / YM2149 sound chip.
+
+
diff --git a/qemu/hw/pc98kbd.c b/qemu/hw/pc98kbd.c
new file mode 100644
index 000..f4e4cdc
--- /dev/null
+++ b/qemu/hw/pc98kbd.c
@@ -0,0 +1,395 @@
+/*
+ * QEMU NEC PC-9821 keyboard
+ *
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any person
diff --git a/qemu/hw/ym2608intf.c b/qemu/hw/ym2608intf.c
new file mode 100644
index 000..35e1064
--- /dev/null
+++ b/qemu/hw/ym2608intf.c
@@ -0,0 +1,234 @@
+/* don't support sampling rythm sound yet */
+//#define YM2608_USE_SAMPLES
+/*
diff --git a/qemu/hw/pc98sys.c b/qemu/hw/pc98sys.c
new file mode 100644
index 000..d3f510c
--- /dev/null
+++ b/qemu/hw/pc98sys.c
@@ -0,0 +1,425 @@
+/*
+ * QEMU NEC PC-9821 systemp port
+ *
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any
diff --git a/qemu/hw/pci_ids.h b/qemu/hw/pci_ids.h
index 63379c2..ca32656 100644
--- a/qemu/hw/pci_ids.h
+++ b/qemu/hw/pci_ids.h
@@ -57,6 +57,10 @@
#define PCI_VENDOR_ID_AMD0x1022
#define PCI_DEVICE_ID_AMD_LANCE 0x2000
+#define PCI_VENDOR_ID_NEC0x1033
+#
diff --git a/qemu/hw/pcspk.c b/qemu/hw/pcspk.c
index 26a0ecb..4a21aae 100644
--- a/qemu/hw/pcspk.c
+++ b/qemu/hw/pcspk.c
@@ -38,6 +38,7 @@ typedef struct {
QEMUSoundCard card;
SWVoiceOut *voice;
PITState *pit;
+int pit_ch;
unsigned int pit_count;
unsigned int samples;
diff --git a/qemu/hw/pc98.c b/qemu/hw/pc98.c
new file mode 100644
index 000..c4adce4
--- /dev/null
+++ b/qemu/hw/pc98.c
@@ -0,0 +1,1004 @@
+/*
+ * QEMU NEC PC-9821 System Emulator
+ *
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any person
(malc)
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
deal
+ * in the Software without restriction, including without limitation the rig
diff --git a/qemu/hw/ide/core.c b/qemu/hw/ide/core.c
index fffcd00..6ccab35 100644
--- a/qemu/hw/ide/core.c
+++ b/qemu/hw/ide/core.c
@@ -1770,8 +1770,10 @@ void ide_ioport_write(void *opaque, uint32_t addr,
uint32_t val)
break;
case 6:
/* FIXME: HOB readback uses bit 7 */
-
diff --git a/qemu/hw/pc98mouse.c b/qemu/hw/pc98mouse.c
new file mode 100644
index 000..27783a9
--- /dev/null
+++ b/qemu/hw/pc98mouse.c
@@ -0,0 +1,266 @@
+/*
+ * QEMU NEC PC-9821 mouse
+ *
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any person
diff --git a/qemu/hw/fm_def.h b/qemu/hw/fm_def.h
new file mode 100644
index 000..0382711
--- /dev/null
+++ b/qemu/hw/fm_def.h
@@ -0,0 +1,25 @@
+/* M.A.M.E. definitions used for YM2608 */
+
+#ifndef __FM_DEF_H__
+#define __FM_DEF_H__
+
+typedef unsigned char UINT8; /* unsigned 8bit */
+typede
+ *
+ * Copyright (c) 2009 TAKEDA, toshiya
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
deal
+ * in the Software without restriction, including without limitation the rights
+ * to
diff --git a/qemu/hw/ymdeltat.c b/qemu/hw/ymdeltat.c
new file mode 100644
index 000..5fa593c
--- /dev/null
+++ b/qemu/hw/ymdeltat.c
@@ -0,0 +1,335 @@
+/*
+**
+** File: ymdeltat.c
+**
+** YAMAHA DELTA-T adpcm sound emulation subroutine
+** used by fmopl.c(v0.37c-) and fm.c(v0.37a-)
+**
+** Base
This patch includes the modifications for 1.23MB floppy diskette.
Its sector size is 1024bytes, so I change the fifo buffer size to 1024,
and add fifo_vmstate and fifo_size_vmstate for vmstate compatibility.
hw/hw.h modification in this patch is by Mr.Juan Quintela, thanks!
diff --git a/qemu/hw/h
diff --git a/qemu/hw/isa.h b/qemu/hw/isa.h
index 655ad62..10118b9 100644
--- a/qemu/hw/isa.h
+++ b/qemu/hw/isa.h
@@ -42,6 +42,7 @@ void DMA_hold_DREQ (int nchan);
void DMA_release_DREQ (int nchan);
void DMA_schedule(int nchan);
void DMA_init (int high_page_enable);
+void pc98_DMA_init (int high_
diff --git a/qemu/hw/ne2000-isa.c b/qemu/hw/ne2000-isa.c
index 729e8e2..7ec1f47 100644
--- a/qemu/hw/ne2000-isa.c
+++ b/qemu/hw/ne2000-isa.c
@@ -42,6 +42,23 @@ static void isa_ne2000_cleanup(VLANClientState *vc)
s->vc = NULL;
}
+static void isa_ne2000_initfn_common(ISADevice *dev,
+
diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c
index 4cd8ec6..25eb6dc 100644
--- a/qemu/hw/pc.c
+++ b/qemu/hw/pc.c
@@ -64,7 +64,7 @@
static fdctrl_t *floppy_controller;
static RTCState *rtc_state;
static PITState *pit;
-static PCII440FXState *i440fx_state;
+PCII440FXState *i440fx_state;
typedef str
This patch is to add qemu_cpu_reset_request() function.
It is like qemu_syste_reset_request(), but it resets only CPUs and does not
reset other devices.
diff --git a/qemu/sysemu.h b/qemu/sysemu.h
index 17af024..79b28a3 100644
--- a/qemu/sysemu.h
+++ b/qemu/sysemu.h
@@ -44,13 +44,16 @@ void cpu_en
diff --git a/qemu/hw/cirrus_vga.c b/qemu/hw/cirrus_vga.c
index 9dfe76a..e31dd75 100644
--- a/qemu/hw/cirrus_vga.c
+++ b/qemu/hw/cirrus_vga.c
@@ -2586,6 +2586,9 @@ static CPUWriteMemoryFunc * const
cirrus_linear_bitblt_write[3] = {
static void map_linear_vram(CirrusVGAState *s)
{
+if (!s->v
diff --git a/qemu/Makefile.target b/qemu/Makefile.target
index fefd7ac..e647474 100644
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -196,6 +196,8 @@ obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o
acpi.o piix_pci.o
obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
sound card, so I add FM core forked from MAME 0.59.
(same version of fmopl)
There are some screenshots on my website:
http://homepage3.nifty.com/takeda-toshiya/qemu/index.html
Thanks,
TAKEDA, toshiya
This patch is to add private_features to i386.
It is like cpuid_ext*_features, but is used for any features not defined in
CPUID.
And "a20mask" feature is defined in private_features.
It is for a20 adrdress mask of PC-98 family.
--- a/qemu/target-i386/cpu.h
+++ b/qemu/target-i386/cpu.h
@@ -405,6
diff --git a/qemu/hw/i8259.c b/qemu/hw/i8259.c
index 3de22e3..eaf75dd 100644
--- a/qemu/hw/i8259.c
+++ b/qemu/hw/i8259.c
@@ -59,6 +59,7 @@ struct PicState2 {
/* XXX: better separation between the two pics */
PicState pics[2];
qemu_irq parent_irq;
+uint8_t irq_cascade;
void *
diff --git a/qemu/hw/i8254.c b/qemu/hw/i8254.c
index 5c49e6e..7b7bf63 100644
--- a/qemu/hw/i8254.c
+++ b/qemu/hw/i8254.c
@@ -47,6 +47,7 @@ typedef struct PITChannelState {
uint8_t bcd; /* not supported */
uint8_t gate; /* timer start */
int64_t count_load_time;
+uint64_t frequenc
Dear all.
This is my first post.
My name is TAKEDA, toshiya.
As Kazu announced, I work for Windows port binary release untill he comes back.
I am developing mainly old Japanese computer/console emulators and now trying
to
implement NEC PC-98x1 architecture on QEMU.
PC-98x1 architecture is very
48 matches
Mail list logo