Re: [Qemu-devel] [PATCH V4 00/18] support NEC PC-9821

2010-01-07 Thread TAKEDA, toshiya
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...)

Re: [Qemu-devel] [PATCH V4 04/18] support NEC PC-9821 architecture

2010-01-06 Thread TAKEDA, toshiya
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

Re: [Qemu-devel] [PATCH V4 02/18] sysemu: support qemu_cpu_reset()

2010-01-06 Thread TAKEDA, toshiya
. 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 > > >

Re: [Qemu-devel] [PATCH V4 03/18] target-i386: support a20 mask for NEC PC-9812

2009-12-25 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 14/18] ne2000-isa: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 17/18] ide: support CHS mode

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 13/18] i8259: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 12/18] i8254: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 15/18] pcspk: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 18/18] pc: extern i440fx_state and ferr_irq

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 11/18] fdc: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 16/18] ide: support NEC PC-9821 interface

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 08/18] support NEC PC-9821 system port

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 05/18] support NEC PC-9821 keyboard

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 04/18] support NEC PC-9821 architecture

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 00/18] support NEC PC-9821

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 10/18] dma: support NEC PC-9821 interface

2009-12-22 Thread 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

[Qemu-devel] [PATCH V4 07/18] support NEC PC-9821 mouse

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 01/18] Makefile.target: add NEC PC-9821 modules

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 02/18] sysemu: support qemu_cpu_reset()

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 06/18] support NEC PC-9821 memory

2009-12-22 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH V4 03/18] target-i386: support a20 mask for NEC PC-9812

2009-12-22 Thread TAKEDA, toshiya
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

Re: [Qemu-devel] Re: [PATCH v3 22/25] ay8910: YM2608 core forked from MAME 0.59

2009-10-29 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 22/25] ay8910: YM2608 core forked from MAME 0.59

2009-10-28 Thread 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. + +

[Qemu-devel] [PATCH v3 16/25] pc98kbd: add NEC PC-9821 family keyboard

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 24/25] ym2608intf: YM2608 core forked from MAME 0.59

2009-10-28 Thread TAKEDA, toshiya
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 +/*

[Qemu-devel] [PATCH v3 18/25] pc98mouse: add NEC PC-9821 family sysport

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 13/25] piix_pci: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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 +#

[Qemu-devel] [PATCH v3 12/25] pcspk: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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;

[Qemu-devel] [PATCH v3 14/25] pc98: add NEC PC-9821 family init

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 20/25] pc98sound: add NEC PC-9821 family sound (PC-9801-86)

2009-10-28 Thread TAKEDA, toshiya
(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

[Qemu-devel] [PATCH v3 10/25] ide/core: support CHS

2009-10-28 Thread TAKEDA, toshiya
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 */ -

[Qemu-devel] [PATCH v3 17/25] pc98mouse: add NEC PC-9821 family mouse

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 21/25] fm_def: definitions for MAME YM2608 core

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 15/25] ide/pc98: add NEC PC-9821 family ide bus

2009-10-28 Thread TAKEDA, toshiya
+ * + * 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

[Qemu-devel] [PATCH v3 25/25] ymdeltat: YM2608 core forked from MAME 0.59

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 7/25] fdc: add NEC PC-9821 family interface and support 1.23MB diskette

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 6/25] dma: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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_

[Qemu-devel] [PATCH v3 11/25] ne2000-isa: add NEC PC-9821 family interface (MELCO LGY-98)

2009-10-28 Thread TAKEDA, toshiya
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, +

[Qemu-devel] [PATCH v3 4/25] pc: extern i440fx_state and ferr_irq

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 2/25] vl: add qemu_cpu_reset_request()

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 5/25] cirrus_vga: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 1/25] Makefile.target: add pc98 objects

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 0/25] Support NEC PC-9821 on target-i386

2009-10-28 Thread TAKEDA, toshiya
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

[Qemu-devel] [PATCH v3 3/25] i386: add private features for a20mask

2009-10-28 Thread 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

[Qemu-devel] [PATCH v3 9/25] i8259: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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 *

[Qemu-devel] [PATCH v3 8/25] i8254: add NEC PC-9821 family interface

2009-10-28 Thread TAKEDA, toshiya
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

Re: [Qemu-devel] Binaries for Windows

2007-03-10 Thread TAKEDA, toshiya
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