Re: [Qemu-devel][PATCH]Get machine name from name of executable

2006-05-14 Thread Fabrice Bellard
I don't understand your problem : the '-M' option is used to select the machine. Your "ar7" machine must be added as a new machine. The endianness must be selected inside the machine code. If the machine can be launched with the two endiannesses, then you can just add two machines names. Fabr

Re: [Qemu-devel][PATCH]Get machine name from name of executable

2006-05-14 Thread Stefan Weil
Hi, ok, I think this plan is a good one. It might even be possible to run several different machines by starting a single QEMU emulation process. But you need some mechanism to tell QEMU which machine(s) to run. Of course, you could add new command line options. MIPS, for example, could select

Re: [Qemu-devel][PATCH]Get machine name from name of executable

2006-05-14 Thread Fabrice Bellard
Hi, The long term plan for qemu is to have a single executable for all machines. If you make a single executable for mips and mipsel, it is better to select the endianness in the code of the machine itself when initializing the CPU. Regards, Fabrice. Stefan Weil wrote: Today, QEMU allows

Re: [Qemu-devel][PATCH]Get machine name from name of executable

2006-05-14 Thread Thiemo Seufer
Stefan Weil wrote: > Today, QEMU allows machine selection using command line option -M. > Without this option, it will always take the first machine > for the given target architecture. > > With my patch, QEMU first parses the name of the executable. > The string after the last '-' is interpreted

[Qemu-devel][PATCH]Get machine name from name of executable

2006-05-14 Thread Stefan Weil
Today, QEMU allows machine selection using command line option -M. Without this option, it will always take the first machine for the given target architecture. With my patch, QEMU first parses the name of the executable. The string after the last '-' is interpreted as machine name. If this machi