qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question about target port
@ 2006-10-05  7:22 郭智偉
  2006-10-10 11:07 ` Martin Guy
  0 siblings, 1 reply; 4+ messages in thread
From: 郭智偉 @ 2006-10-05  7:22 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

How can I change target CPU to Atmel's AVR and don't care about host.
i.e:host CPU is X86(PC),target CPU is Atmel's AVR.
Can it implementation?If it can,where can I find any discussion about this
question?
tks!

[-- Attachment #2: Type: text/html, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Question about target port
  2006-10-05  7:22 [Qemu-devel] Question about target port 郭智偉
@ 2006-10-10 11:07 ` Martin Guy
  2006-10-15 23:15   ` Paul Brook
  2006-10-16  0:07   ` M. Warner Losh
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Guy @ 2006-10-10 11:07 UTC (permalink / raw)
  To: qemu-devel

> How can I change target CPU to Atmel's AVR and don't care about host.
> i.e:host CPU is X86(PC),target CPU is Atmel's AVR.

Hi
  Atmel AVR is a different processor from the ones that QEMU emulates.
You would need to implement an entire new emulation inside QEMU; that
is a LOT of work in C programming. It is also an 8-bit processor,
while all the ones that qemu currently emulates are 32-bit, so you may
need to restructure the code as well to support 8-bit.

    M

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Question about target port
  2006-10-10 11:07 ` Martin Guy
@ 2006-10-15 23:15   ` Paul Brook
  2006-10-16  0:07   ` M. Warner Losh
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Brook @ 2006-10-15 23:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: Martin Guy

On Tuesday 10 October 2006 12:07, Martin Guy wrote:
> > How can I change target CPU to Atmel's AVR and don't care about host.
> > i.e:host CPU is X86(PC),target CPU is Atmel's AVR.
>
> Hi
>   Atmel AVR is a different processor from the ones that QEMU emulates.
> You would need to implement an entire new emulation inside QEMU; that
> is a LOT of work in C programming. It is also an 8-bit processor,
> while all the ones that qemu currently emulates are 32-bit, so you may
> need to restructure the code as well to support 8-bit.

I got the impression the AVR was a fairly straightforward CPU. I wouldn't 
expect the 8-bitness to be a particular problem. x86 has lots of crufty 16 
and 8-bit corners :-) It might not be amazingly efficient, but real AVR 
silicon is really slow anyway.

IIRC AVR has separate code and data address spaces. However as these are both 
<32-bit you can probably fake this by implementing them as offsets within a 
single 32-bit address space.

That said, porting qemu to a new cpu is a fair amount of work, especially if 
you're not familiar with qemu internals. I recommend looking back in the list 
archives to CVS for where the mips and SH ports were added. That will give 
you some indication of the magnitude of the changes required.

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Question about target port
  2006-10-10 11:07 ` Martin Guy
  2006-10-15 23:15   ` Paul Brook
@ 2006-10-16  0:07   ` M. Warner Losh
  1 sibling, 0 replies; 4+ messages in thread
From: M. Warner Losh @ 2006-10-16  0:07 UTC (permalink / raw)
  To: qemu-devel, martinwguy

In message: <56d259a00610100407p2529dbasd5ae43ade7901c66@mail.gmail.com>
            "Martin Guy" <martinwguy@gmail.com> writes:
: > How can I change target CPU to Atmel's AVR and don't care about host.
: > i.e:host CPU is X86(PC),target CPU is Atmel's AVR.
: 
: Hi
:   Atmel AVR is a different processor from the ones that QEMU emulates.
: You would need to implement an entire new emulation inside QEMU; that
: is a LOT of work in C programming. It is also an 8-bit processor,
: while all the ones that qemu currently emulates are 32-bit, so you may
: need to restructure the code as well to support 8-bit.

There's a new AVR32 as well, which is a 32-bit beast.

Warner

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-16  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-05  7:22 [Qemu-devel] Question about target port 郭智偉
2006-10-10 11:07 ` Martin Guy
2006-10-15 23:15   ` Paul Brook
2006-10-16  0:07   ` M. Warner Losh

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).