qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel][PATCH]Get machine name from name of executable
Date: Sun, 14 May 2006 20:03:17 +0200	[thread overview]
Message-ID: <446770E5.4000601@bellard.org> (raw)
In-Reply-To: <446730EE.8050008@mail.berlios.de>

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.

Fabrice.

Stefan Weil wrote:
> 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 endianness
> automatically in user mode (from ELF format), but not in system mode 
> when running a complete system
> with a firmware loader. So you need some way to tell QEMU that this is a 
> MIPS CPU with a certain kind
> of endianness (the real CPU has a hardware input pin for this, we need 
> something which replaces this
> hardware input pin).
> 
> Did you think about using configuration files (XML, YAML, or any other 
> format) with machine descriptions
> (CPU, CPU variant, endianness, network hardware, serial ports, other 
> hardware features which are
> compiled into the code or configured via command line options today)?
> 
> Regards
> Stefan
> 
> Fabrice Bellard schrieb:
> 
>> 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.
> 
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 
> 

      reply	other threads:[~2006-05-14 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-14 10:42 [Qemu-devel][PATCH]Get machine name from name of executable Stefan Weil
2006-05-14 11:34 ` Thiemo Seufer
2006-05-14 11:48 ` Fabrice Bellard
2006-05-14 13:30   ` Stefan Weil
2006-05-14 18:03     ` Fabrice Bellard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=446770E5.4000601@bellard.org \
    --to=fabrice@bellard.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).