On 24/10/2007, Dan Kenigsberg <[EMAIL PROTECTED]> wrote: > Real PCs try to boot from a CD, then try the hard drive, and finally go > to the network. And they let their owner change that order.
With the difference that on real PCs this is controlled by the BIOS menu rather than a hardware switch, but the latter seems more convenient for qemu. > This patch lets Qemu do the same with "-boot dcn". > > I'll be happy to hear comments about it, > > Dan. > > diff --git a/hw/an5206.c b/hw/an5206.c > index 94ecccb..2134184 100644 > --- a/hw/an5206.c > +++ b/hw/an5206.c > @@ -27,7 +27,7 @@ void DMA_run (void) > > /* Board init. */ > > -static void an5206_init(int ram_size, int vga_ram_size, int boot_device, > +static void an5206_init(int ram_size, int vga_ram_size, char *boot_device, > DisplayState *ds, const char **fd_filename, int > snapshot, > const char *kernel_filename, const char *kernel_cmdline, > const char *initrd_filename, const char *cpu_model) BTW, it may be a good idea to pass all these values (maybe except ds) as a single struct, for purely practical reasons. Regards