Ali Chipset support for PC [+ questions about alpha-softmmu target]
PATCH 1/1 Ali Chipset support for PC [+ questions about alpha-softmmu target]
Hello!
Long time listener, first time caller...
Since the ES40 Alpha Emulation project seems to have stalled, I've been looking at what it would take to get QEmu to a state where it could emulate an alpha machine.
The es40 is basically a PC with an alpha chip instead of an x86 and it
uses the Ali1543C south bridge. This basically is a copy of piix_pci.c
so the chipset reports the ALI vendor and device codes to qemu when the "alipc" machine type is selected.
I've booted Knoppix and it seems to work ok...which is no surpise considering how minor the changes are.
So, now to the questions:
* Is anyone else working on a softmmu target for the alpha?
* What state is the alpha cpu emulation in, and what's the best way to test it?
* What's the most simple -softmmu target that could be used as a starting point?
* Where is the virtual->physical address translation code? I peeked around and couldn't find it very easily.
* Looking over some of the softmmu targets, it looks like the bulk of target work (after the cpu emulation, of course) is just attaching all of the devices in the right places.
Thanks!
Brian
Makefile.target +1 -1
@@ -538,7 +538,7 @@ # Hardware support OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o -OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o +OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o ali.o OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE endif
machine.c +2 -0
@@ -9,6 +9,8 @@ {qemu_register_machine (&pc_machine);qemu_register_machine (&isapc_machine); +qemu_register_machine (&alipc_machine); + }static void cpu_put_seg (QEMUFile *f,SegmentCache *dt)
usb-uhci.c +37 -0
@@ -1143,3 +1143,40 @@register_savevm ("uhci" ,0 ,1 , uhci_save, uhci_load, s); } + + +void usb_uhci_alisb_init (PCIBus *bus,int devfn) +{ +UHCIState *s; +uint8_t *pci_conf; +int i; + + s = (UHCIState *)pci_register_device (bus, +"USB-UHCI" ,sizeof (UHCIState), + devfn,NULL ,NULL ); + pci_conf = s->dev.config; + pci_conf[0x00 ] =0xb9 ; + pci_conf[0x01 ] =0x10 ; + pci_conf[0x02 ] =0x37 ; + pci_conf[0x03 ] =0x52 ; + pci_conf[0x08 ] =0x03 ;// revision number + pci_conf[0x09 ] =0x10 ; + pci_conf[0x0a ] =0x03 ; + pci_conf[0x0b ] =0x0c ; + pci_conf[0x0e ] =0x00 ;// header_type + pci_conf[0x3d ] =1 ; + +for (i =0 ; i <NB_PORTS ; i++) { +qemu_register_usb_port (&s->ports[i].port, s, i, uhci_attach); + } + s->frame_timer =qemu_new_timer (vm_clock, uhci_frame_timer, s); + +uhci_reset (s); + +/* Use region 4 for consistency with real hardware. BSD guests seem +to rely on this. */ +pci_register_io_region (&s->dev,4 ,0x20 , +PCI_ADDRESS_SPACE_IO , uhci_map); + +register_savevm ("uhci" ,0 ,1 , uhci_save, uhci_load, s); +}
ide.c +56 -0
68 lines not on this page · raw message
pci.h +1 -0
@@ -108,6 +108,7 @@/* usb-uhci.c */ void usb_uhci_piix3_init (PCIBus *bus,int devfn);void usb_uhci_piix4_init (PCIBus *bus,int devfn); +void usb_uhci_alisb_init (PCIBus *bus,int devfn);/* usb-ohci.c */ void usb_ohci_init_pci (struct PCIBus *bus,int num_ports,int devfn);
boards.h +1 -0
@@ -29,6 +29,7 @@/* pc.c */ extern QEMUMachine pc_machine;extern QEMUMachine isapc_machine; +extern QEMUMachine alipc_machine;/* ppc.c */ extern QEMUMachine prep_machine;
pc.c +36 -2
@@ -52,6 +52,7 @@static PITState *pit;static IOAPICState *ioapic;static PCIDevice *i440fx_state; +static PCIDevice *ali_state;static void ioport80_write (void *opaque,uint32_t addr,uint32_t data) {
@@ -730,6 +731,7 @@int bios_size, isa_bios_size, vga_bios_size;PCIBus *pci_bus;int piix3_devfn =-1 ; +int alisb_devfn =-1 ;CPUState *env;NICInfo *nd;qemu_irq *cpu_irq;
@@ -880,9 +882,12 @@ i8259 =i8259_init (cpu_irq[0 ]); ferr_irq = i8259[13 ]; -if (pci_enabled) { +if (pci_enabled==1 ) { pci_bus =i440fx_init (&i440fx_state, i8259); piix3_devfn =piix3_init (pci_bus,-1 ); + }else if (pci_enabled==2 ) { + pci_bus =ali_init (&ali_state, i8259); + alisb_devfn =alisb_init (pci_bus,-1 ); }else { pci_bus =NULL ; }
@@ -984,8 +989,10 @@ hd[i] =NULL ; } -if (pci_enabled) { +if (pci_enabled==1 ) {pci_piix3_ide_init (pci_bus, hd, piix3_devfn +1 , i8259); + }else if (pci_enabled==2 ) { +pci_alisb_ide_init (pci_bus, hd, alisb_devfn +1 , i8259); }else {for (i =0 ; i <MAX_IDE_BUS ; i++) { isa_ide_init(ide_iobase[i], ide_iobase2[i], i8259[ide_irq[i]],
@@ -1011,7 +1018,10 @@cmos_init (below_4g_mem_size, above_4g_mem_size, boot_device, hd);if (pci_enabled && usb_enabled) { +if (pci_enabled==1 )usb_uhci_piix3_init (pci_bus, piix3_devfn +2 ); +else +usb_uhci_alisb_init (pci_bus, alisb_devfn +2 ); }if (pci_enabled && acpi_enabled) {
@@ -1029,6 +1039,10 @@i440fx_init_memory_mappings (i440fx_state); } +if (ali_state) { +ali_init_memory_mappings (ali_state); + } +if (pci_enabled) {int max_bus;int bus, unit;
@@ -1060,6 +1074,19 @@ initrd_filename, 1, cpu_model); } + +static void pc_init_pci_ali (ram_addr_t ram_size,int vga_ram_size, +const char *boot_device,DisplayState *ds, +const char *kernel_filename, +const char *kernel_cmdline, +const char *initrd_filename, +const char *cpu_model) +{ +pc_init1 (ram_size, vga_ram_size, boot_device, ds, + kernel_filename, kernel_cmdline, + initrd_filename,2 , cpu_model); +} + static void pc_init_isa(ram_addr_t ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename,
@@ -1085,3 +1112,10 @@ .init = pc_init_isa, .ram_require = VGA_RAM_SIZE + PC_MAX_BIOS_SIZE, }; + +QEMUMachine alipc_machine = { + .name ="alipc" , + .desc ="PC with ALI Chipset" , + .init = pc_init_pci_ali, + .ram_require =VGA_RAM_SIZE +PC_MAX_BIOS_SIZE , +};
pc.h +9 -0
@@ -140,9 +140,18 @@ qemu_irq *pic);void pci_piix4_ide_init (PCIBus *bus,BlockDriverState **hd_table,int devfn,qemu_irq *pic); +void pci_alisb_ide_init (PCIBus *bus,BlockDriverState **hd_table,int devfn, +qemu_irq *pic);/* ne2000.c */ void isa_ne2000_init (int base,qemu_irq irq,NICInfo *nd); + +/* ali.c */ +PCIBus *ali_init (PCIDevice **ali_state,qemu_irq *pic); +int alisb_init (PCIBus *bus,int devfn); +void ali_init_memory_mappings (PCIDevice *d); + +#endif
Quoted 4 lines · Brian Wheeler
Hello!
Long time listener, first time caller...
Quoted 8 lines
Since the ES40 Alpha Emulation project seems to have stalled, I've been looking at what it would take to get QEmu to a state where it could emulate an alpha machine.
The es40 is basically a PC with an alpha chip instead of an x86 and it
uses the Ali1543C south bridge. This basically is a copy ofpiix_pci.c
so the chipset reports the ALI vendor and device codes to qemu when the "alipc" machine type is selected.
IMHO pc.c would support more machines more cleanly if hardware definition structures like Sparc ones were used. Otherwise the patch looks fine to me.
Quoted 11 lines
I've booted Knoppix and it seems to work ok...which is no surpise considering how minor the changes are.
So, now to the questions:
* Is anyone else working on a softmmu target for the alpha?* What state is the alpha cpu emulation in, and what's the best way to test it?
* What's the most simple -softmmu target that could be used as a starting point?
Depends on what you know, x86 is quite baroque but everyone knows the basic architecture. Sparc32 is pretty simple.
Quoted 2 lines
* Where is the
virtual->physicaladdress translation code? I peeked around and couldn't find it very easily.
cpu_*_handle_mmu_fault(), usually in target-*/helper.c.
Quoted 3 lines
* Looking over some of the softmmu targets, it looks like the bulk of target work (after the cpu emulation, of course) is just attaching all of the devices in the right places.
True. Also it's not hard to create new devices.
Quoted 7 lines · Brian Wheeler
Hello!
Long time listener, first time caller...
Since the ES40 Alpha Emulation project seems to have stalled, I've been looking at what it would take to get QEmu to a state where it could emulate an alpha machine.
Hi,
I had the same idea too. Qemu should be much faster than es40 emulator.
Quoted 10 lines
The es40 is basically a PC with an alpha chip instead of an x86 and it
uses the Ali1543C south bridge. This basically is a copy ofpiix_pci.c
so the chipset reports the ALI vendor and device codes to qemu when the "alipc" machine type is selected.I've booted Knoppix and it seems to work ok...which is no surpise considering how minor the changes are.
So, now to the questions:
* Is anyone else working on a softmmu target for the alpha?
I plan to work on it. But first I have to finish the TCG conversion of target-alpha.
Quoted 2 lines
* What state is the alpha cpu emulation in, and what's the best way to test it?
Still beta. It was not maintained nor tested for a while. And bugs were recently found.
Quoted 3 lines
* Looking over some of the softmmu targets, it looks like the bulk of target work (after the cpu emulation, of course) is just attaching all of the devices in the right places.
Booting might be an issue too as alpha boots from icache.
It looks like es40 has an IO-TLB which is not present in standard PC. I suppose Sparc64 has also an IO-TLB but I didn't look further.
Tristan.
Quoted 6 lines · Tristan Gingold
Quoted 4 lines · Brian Wheeler
Hello!
Long time listener, first time caller...
Quoted 9 lines
Quoted 4 lines
Since the ES40 Alpha Emulation project seems to have stalled, I've been
looking at what it would take to get QEmu to a state where it could emulate an alpha machine.Hi,
I had the same idea too. Qemu should be much faster than es40 emulator.
That was my thought. Plus the devices are more fully tested. I wrote the IDE stuff (and misc other devices) for es40 and it was really hit or miss on timing.
Quoted 7 lines
Quoted 7 lines
The es40 is basically a PC with an alpha chip instead of an x86 and it
uses the Ali1543C south bridge. This basically is a copy ofpiix_pci.c
so the chipset reports the ALI vendor and device codes to qemu when the
"alipc" machine type is selected.
Quoted 9 lines
Quoted 5 lines
I've booted Knoppix and it seems to work ok...which is no surpise considering how minor the changes are.
So, now to the questions:
* Is anyone else working on a softmmu target for the alpha?I plan to work on it. But first I have to finish the TCG conversion of target-alpha.
Cool.
Quoted 6 lines
Quoted 2 lines
* What state is the alpha cpu emulation in, and what's the best way to test it?
Still beta. It was not maintained nor tested for a while. And bugs were recently found.
Anything that I can do to help? I worked on es40 (mostly pc-style hardware stuff) so if I can help I'd like to.
Quoted 8 lines
Quoted 3 lines
* Looking over some of the softmmu targets, it looks like the bulk of target work (after the cpu emulation, of course) is just attaching all of the devices in the right places.
Booting might be an issue too as alpha boots from icache. It looks like es40 has an IO-TLB which is not present in standard PC. I suppose Sparc64 has also
an IO-TLB but I didn't look further.
Yeah, the icache thing will be interesting. Looking at es40, the icache looks like its only used during the rom decompression stage. es40 creates a decompressed rom file on the first run and it looks like the first uint64 is the PC, and the second uint64 is the PAL_BASE. That should be enough to get the system up and running (after a software-only call_pal instruction is implemented)...and it doesn't seem to mess with the icache in that case.
I may look at a standalone rom extractor, so you can give it the cl67srmrom.exe file and drop out a ready-to-run rom file.
Brian
Quoted 4 lines
Tristan.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
* What state is the alpha cpu emulation in, and what's the best way to test it?
Still beta. It was not maintained nor tested for a while. And bugs were recently found.
Anything that I can do to help? I worked on es40 (mostly pc-style hardware stuff) so if I can help I'd like to.
A simple printf("Hello world\n") program compiled on linux now works on qemu (patches pending). So the cpu emulation is not that bad. There are still a lot to check (FPU, overflow) but they are less frequently used.
Quoted 18 lines
Quoted 9 lines
Quoted 4 lines
* Looking over some of the softmmu targets, it looks like the bulk of target work (after the cpu emulation, of course) is just attaching all of the devices in the right places.
Booting might be an issue too as alpha boots from icache. It looks like es40 has an IO-TLB which is not present in standard PC. I suppose Sparc64 has also
an IO-TLB but I didn't look further.Yeah, the icache thing will be interesting. Looking at es40, the icache looks like its only used during the rom decompression stage. es40 creates a decompressed rom file on the first run and it looks like the first uint64 is the PC, and the second uint64 is the
PAL_BASE. That should be enough to get the system up and running (after a software-onlycall_palinstruction is implemented)...and it doesn't seem to mess with the icache in that case.
Quoted 2 lines
I may look at a standalone rom extractor, so you can give it the cl67srmrom.exe file and drop out a ready-to-run rom file.
So if you get the SRM decompressed from es40, you can start to work on the softmmu emulation.
Tristan.
Quoted 2 lines
So if you get the SRM decompressed from es40, you can start to work on the softmmu emulation.
Does linux actually use the bios at all once it's loaded[1]?
If not the simplest solution may be to load the kernel directly, and ignore the machine firmware.
[1] On Open Firmware based systems the kernel tends to use the firmware interface for doing initial machine setup and hardware probing. On most other systems there's no real interaction between the bootloader and the kernel. You just load the kernel into ram and set it going..
Paul
Quoted 6 lines · Paul Brook
Quoted 2 lines
So if you get the SRM decompressed from es40, you can start to work on the softmmu emulation.
Does linux actually use the bios at all once it's loaded[1]?
If not the simplest solution may be to load the kernel directly, and ignore the machine firmware.
The SRM contains the PALcode and any OS depends on PALcode.
MILO is an open-source firmware for Alpha. Maybe we could start from it too.
Quoted 4 lines · Tristan Gingold
Quoted 3 lines · Paul Brook
Quoted 2 lines
So if you get the SRM decompressed from es40, you can start to work on the softmmu emulation.
Quoted 8 lines
Quoted 4 lines
Does linux actually use the bios at all once it's loaded[1]? If not the simplest solution may be to load the kernel directly, and ignore
the machine firmware.The SRM contains the PALcode and any OS depends on PALcode. MILO is an open-source firmware for Alpha. Maybe we could start from it too.
Using an open source bootloader is almost certainly going to make your job a lot easier. It's much easier to get things up and running when you can hack the bootloader to workaround deficiencies in the emulation, and debug things from both ends (instrumentation the bootloader to tell you what it thinks is going on). The final goal may be to run unmodified images from real machines, but there are a lot of very useful intermediate steps before you get there.
Paul
Quoted 4 lines · Tristan Gingold
The SRM contains the PALcode and any OS depends on PALcode. MILO is an open-source firmware for Alpha. Maybe we could start from it too.
My understanding is that SRM is required anyway to boot "modern" Alpha systems. MILO is used on older systems.
cf: http://www.alphalinux.org/faq/SRM-HOWTO
Laurent
I believe Milo was needed for systems with the AlphaBIOS and/or ARC consoles. Systems with SRM are unix friendly, so Linux didn't need a special console for them (and BSD only supported SRM). As near as I can tell from the es40 rom, it looks like there are a bunch of diagnostics in it if you turn them on...
Brian
Quoted 15 lines · Laurent Desnogues
Quoted 4 lines · Tristan Gingold
The SRM contains the PALcode and any OS depends on PALcode. MILO is an open-source firmware for Alpha. Maybe we could start from it too.
My understanding is that SRM is required anyway to boot "modern" Alpha systems. MILO is used on older systems.
cf: http://www.alphalinux.org/faq/SRM-HOWTO
Laurent
Quoted 6 lines · Paul Brook
Quoted 3 lines
So if you get the SRM decompressed from es40, you can start to work on the softmmu emulation.
Does linux actually use the bios at all once it's loaded[1]?
On x86, yes (for the e820 map, etc.)
ACPI is in the BIOS, there are 32-bit suspend/resume entry points, etc.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 40 lines · Tristan Gingold
Quoted 10 lines
Quoted 7 lines
Quoted 3 lines
* What state is the alpha cpu emulation in, and what's the best way to
test it?Still beta. It was not maintained nor tested for a while. And bugs were recently found.
Anything that I can do to help? I worked on es40 (mostly pc-style hardware stuff) so if I can help I'd like to.
A simple
printf("Hello world\n")program compiled on linux now works on qemu (patches
pending). So the cpu emulation is not that bad. There are still a lot to check (FPU,
overflow) but they are less frequently used.Quoted 23 lines
Quoted 11 lines
Quoted 6 lines
* Looking over some of the softmmu targets, it looks like the bulk of
target work (after the cpu emulation, of course) is just attaching all
of the devices in the right places.Booting might be an issue too as alpha boots from icache. It looks like es40 has an IO-TLB which is not present in standard PC. I suppose Sparc64 has also
an IO-TLB but I didn't look further.Yeah, the icache thing will be interesting. Looking at es40, the icache
looks like its only used during the rom decompression stage. es40 creates a decompressed rom file on the first run and it looks like the first uint64 is the PC, and the second uint64 is thePAL_BASE. That should be enough to get the system up and running (after a software- onlycall_palinstruction is implemented)...and it doesn't seem to mess with
the icache in that case.
Quoted 7 lines
Quoted 2 lines
I may look at a standalone rom extractor, so you can give it the cl67srmrom.exe file and drop out a ready-to-run rom file.
So if you get the SRM decompressed from es40, you can start to work on the softmmu
emulation.
I'll start looking at the 21072 (Typhoon) chipset.
Where does the physical address -> {IO Port, PCI Memory, RAM} routing take place in QEmu. I'm seeing lots of registration functions, but I can't seem to find where the call takes place based upon a physical address...
Brian
Quoted 4 lines
Tristan.
Hi,
Quoted 3 lines · Brian Wheeler
Since the ES40 Alpha Emulation project seems to have stalled, I've been looking at what it would take to get QEmu to a state where it could emulate an alpha machine.
I tried some time ago to add an alpha-softmmu target to Qemu.
Unfortunately, it doesn't even try to decode the first instruction, for some unknown reason...
Attached patch gives what I have.
Hervé
Index: Makefile.target
===================================================================
Makefile.target +1 -1
@@ -211,7 +211,7 @@ endif ifeq ($(TARGET_BASE_ARCH), alpha) -LIBOBJS+= alpha_palcode.o +LIBOBJS+= alpha_palcode.o alpha_es40.o endif ifeq ($(TARGET_BASE_ARCH), cris)
cpu.h +4 -0
@@ -223,6 +223,8 @@ IPR_LAST, }; +typedef struct alpha_def_t alpha_def_t ; +typedef struct CPUAlphaState CPUAlphaState ;typedef struct pal_handler_t pal_handler_t ;
@@ -297,6 +299,7 @@#define cpu_exec cpu_alpha_exec#define cpu_gen_code cpu_alpha_gen_code#define cpu_signal_handler cpu_alpha_signal_handler +#define cpu_list alpha_cpu_list/* MMU modes definitions */ #define MMU_MODE0_SUFFIX _kernel
@@ -401,6 +404,7 @@ };CPUAlphaState *cpu_alpha_init (const char *cpu_model); +void alpha_cpu_list (FILE *f,int (*cpu_fprintf)(FILE *f,const char *fmt, ...));int cpu_alpha_exec (CPUAlphaState *s);/* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero
translate.c +18 -3
@@ -2001,17 +2001,34 @@gen_intermediate_code_internal (env, tb,1 ); } +#include "translate_init.c" +CPUAlphaState *cpu_alpha_init (const char *cpu_model) {CPUAlphaState *env; -uint64_t hwpcb; +const alpha_def_t *def; + def =cpu_alpha_find_by_name (cpu_model); +if (!def) +return NULL ; env =qemu_mallocz (sizeof (CPUAlphaState));if (!env)return NULL ; +//env->cpu_model = def; +cpu_exec_init (env); +//env->cpu_model_str = cpu_model; +cpu_reset (env); +return env; +} + +void cpu_reset (CPUAlphaState *env) +{ +uint64_t hwpcb; +alpha_translate_init ();tlb_flush (env,1 ); +/* XXX: should not be hardcoded */ env->implver = IMPLVER_2106x; env->ps =0x1F00 ;
@@ -2037,8 +2054,6 @@// env->ipr[IPR_PTBR] = ldq_raw(hwpcb + 32); env->ipr[IPR_SISR ] =0 ; env->ipr[IPR_VIRBND ] =-1ULL ; - -return env; } void gen_pc_load(CPUState *env, TranslationBlock *tb,
monitor.c +2 -0
@@ -319,6 +319,8 @@term_printf (" pc=0x" TARGET_FMT_lx" npc=0x" TARGET_FMT_lx, env->pc, env->npc);#elif defined(TARGET_MIPS )term_printf (" PC=0x" TARGET_FMT_lx, env->active_tc.PC); +#elif defined(TARGET_ALPHA ) +term_printf (" pc=0x" TARGET_FMT_lx, env->pc);#endif if (env->halted)term_printf (" (halted)" );
configure +1 -0
@@ -565,6 +565,7 @@ target_list="\ i386-softmmu \ x86_64-softmmu \ +alpha-softmmu \ arm-softmmu \ cris-softmmu \ m68k-softmmu \
sysemu.h +2 -0
@@ -110,6 +110,8 @@#define BIOS_SIZE ((512 + 32) * 1024)#elif defined(TARGET_MIPS )#define BIOS_SIZE (4 * 1024 * 1024) +#elif defined(TARGET_ALPHA ) +#define BIOS_SIZE (2 * 1024 * 1024)#endif typedef enum {
boards.h +3 -0
@@ -26,6 +26,9 @@/* Axis ETRAX. */ extern QEMUMachine bareetraxfs_machine; +/* es40.c */ +extern QEMUMachine es40_machine; +/* pc.c */ extern QEMUMachine pc_machine;extern QEMUMachine isapc_machine;
alpha_palcode.c +0 -1
@@ -22,7 +22,6 @@#include <stdlib.h> #include <stdio.h> -#include "qemu.h" #include "cpu.h" #include "exec-all.h"
translate_init.c new file +39 -0
@@ -0,0 +1,39 @@ +struct alpha_def_t { +const char *name; +}; + +/*****************************************************************************/ +/* Alpha CPU definitions */ +static alpha_def_t alpha_defs[] = +{ + { + .name ="ev68cb" , + }, +}; + +static const alpha_def_t *cpu_alpha_find_by_name (const char *name) +{ +int i; + +for (i =0 ; i <sizeof (alpha_defs) /sizeof (alpha_defs[0 ]); i++) { +if (strcasecmp (name, alpha_defs[i].name) ==0 ) { +return &alpha_defs[i]; + } + } +return NULL ; +} + +void alpha_cpu_list (FILE *f,int (*cpu_fprintf)(FILE *f,const char *fmt, ...)) +{ +int i; + +for (i =0 ; i <sizeof (alpha_defs) /sizeof (alpha_defs[0 ]); i++) { + (*cpu_fprintf)(f,"Alpha '%s'\n" , + alpha_defs[i].name); + } +} + +static int cpu_alpha_register (CPUAlphaState *env,const alpha_def_t *def) +{ +return 0 ; +}
machine.c new file +28 -0
@@ -0,0 +1,28 @@ +#include "hw/hw.h" +#include "hw/boards.h" + +void register_machines (void ) +{ +qemu_register_machine (&es40_machine); +} + +void cpu_save (QEMUFile *f,void *opaque) +{ +} + +int cpu_load (QEMUFile *f,void *opaque,int version_id) +{ +return 0 ; +} + +void DMA_run (void ) +{ +} + +void irq_info (void ) +{ +} + +void pic_info (void ) +{ +}
alpha_es40.c new file +111 -0
111 lines not on this page · raw message