[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel][PATCH]Get machine name from name of executable
From: |
Thiemo Seufer |
Subject: |
Re: [Qemu-devel][PATCH]Get machine name from name of executable |
Date: |
Sun, 14 May 2006 12:34:09 +0100 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
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 as machine name.
> If this machine does not exist, the first machine is taken,
> so the new QEMU remains compatible with the old behaviour.
>
> With this patch, an installation might link e.g. qemu-system-arm
> to qemu-system-arm-integratorcp926, and running
> qemu-system-arm-integratorcp926
> will automatically select machine integratorcp926.
>
> My goal is a MIPS emulation which supports big and little endian mode
> in the same executable (like the real hardware). qemu-system-mipsel
> would be a symbolic link to qemu-system-mips and enable little endian mode.
A similiar approach was abandoned years ago in the case of GNU
ls/dir/vdir due to continuous trouble on non-posix systems, and the
potential of unexpected results with this aproach. (E.g. what happens
if somebody adds a symlink qemu-default -> qemu-system-mipsel).
Thiemo