* [Qemu-devel] Port Qemu to another ARM platform
@ 2006-08-08 13:07 Christian Roepke
0 siblings, 0 replies; 5+ messages in thread
From: Christian Roepke @ 2006-08-08 13:07 UTC (permalink / raw)
To: qemu-devel
Hi,
I consider to port qemu to another ARM platform so that I have a software
simulator for my microcontroller board. There is an ARM926EJ-S core on my board
which is backwards compatible from ARM7. Hence I must not port the cpu core
only the interrupt controller, timer, uart, ... I hope that such a software
simulator is good for testing my software/OS - I am currently porting the L4
micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
Is there a documents available which decribes how to port qemu to another ARM
platform or something similar?
Kind regards,
Hans
--
Hans Christian Röpke
Network Administration
Applied Data Security Group
Ruhr-Universität Bochum, IC 4/42
Universitätsstrasse 150
44780 Bochum, Germany
http://www.prosec.rub.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Port Qemu to another ARM platform
@ 2006-08-08 15:04 Christian Roepke
2006-08-08 15:12 ` Paul Brook
0 siblings, 1 reply; 5+ messages in thread
From: Christian Roepke @ 2006-08-08 15:04 UTC (permalink / raw)
To: qemu-devel
Hi,
I consider to port qemu to another ARM platform so that I have a software
simulator for my microcontroller board. There is an ARM926EJ-S core on my board
which is backwards compatible from ARM7. Hence I must not port the cpu core
only the interrupt controller, timer, uart, ... I hope that such a software
simulator is good for testing my software/OS - I am currently porting the L4
micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
Is there a documents available which decribes how to port qemu to another ARM
platform or something similar?
Kind regards,
Hans
--
Hans Christian Röpke
Network Administration
Applied Data Security Group
Ruhr-Universität Bochum, IC 4/42
Universitätsstrasse 150
44780 Bochum, Germany
http://www.prosec.rub.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Port Qemu to another ARM platform
2006-08-08 15:04 Christian Roepke
@ 2006-08-08 15:12 ` Paul Brook
2006-08-09 15:18 ` Christian Roepke
0 siblings, 1 reply; 5+ messages in thread
From: Paul Brook @ 2006-08-08 15:12 UTC (permalink / raw)
To: qemu-devel
On Tuesday 08 August 2006 16:04, Christian Roepke wrote:
> Hi,
>
> I consider to port qemu to another ARM platform so that I have a software
> simulator for my microcontroller board. There is an ARM926EJ-S core on my
> board which is backwards compatible from ARM7. Hence I must not port the
> cpu core only the interrupt controller, timer, uart, ... I hope that such a
> software simulator is good for testing my software/OS - I am currently
> porting the L4 micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
>
> Is there a documents available which decribes how to port qemu to another
> ARM platform or something similar?
Not really. However qemu already supports a few different Arm boards, so
looking at the source should tell you most of what you need to know.
Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Port Qemu to another ARM platform
2006-08-08 15:12 ` Paul Brook
@ 2006-08-09 15:18 ` Christian Roepke
2006-08-09 15:56 ` Paul Brook
0 siblings, 1 reply; 5+ messages in thread
From: Christian Roepke @ 2006-08-09 15:18 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
Hello,
> > Hi,
> >
> > I consider to port qemu to another ARM platform so that I have a software
> > simulator for my microcontroller board. There is an ARM926EJ-S core on my
> > board which is backwards compatible from ARM7. Hence I must not port the
> > cpu core only the interrupt controller, timer, uart, ... I hope that such a
> > software simulator is good for testing my software/OS - I am currently
> > porting the L4 micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
> >
> > Is there a documents available which decribes how to port qemu to another
> > ARM platform or something similar?
>
> Not really. However qemu already supports a few different Arm boards, so
> looking at the source should tell you most of what you need to know.
But the Integrator port is the only ARM926EJ-S port, right? Is everythink
platform specific implemented in ./hw/integratorcp.c ?
If my software works on qemu, does it work on a real Integrator board, too? Or
are there some differences?
Thanks,
Hans
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Port Qemu to another ARM platform
2006-08-09 15:18 ` Christian Roepke
@ 2006-08-09 15:56 ` Paul Brook
0 siblings, 0 replies; 5+ messages in thread
From: Paul Brook @ 2006-08-09 15:56 UTC (permalink / raw)
To: qemu-devel
> > > Is there a documents available which decribes how to port qemu to
> > > another ARM platform or something similar?
> >
> > Not really. However qemu already supports a few different Arm boards, so
> > looking at the source should tell you most of what you need to know.
>
> But the Integrator port is the only ARM926EJ-S port, right?
The versatile board also uses an Arm926 core (as well as sharing much of the
device emulation).
> Is everythink platform specific implemented in ./hw/integratorcp.c ?
Yes. There's actually very little board specific code. Almost everything
(including interrupt controllers) are implemented as independent devices, the
board specific code just instantiates those devices.
> If my software works on qemu, does it work on a real Integrator board, too?
> Or are there some differences?
There are several bits of of hardware emulation missing (notably flash, MMC
and AACI).
Partly as a side-effect of this there's no significant bootloaded on the
emulated board. It knows how to load linux kernels (or I guess and PIC binary
image), but that's about it.
Also note that qemu isn't even vaguely cycle accurate, and doesn't accurately
model TLB or cache. It should be sufficient for most applications, but code
that does sneaky hardware specific things (like assuming a particular TLB
size or relying on cache/TLB lockdown for correct behavior) will break.
Other than that it should work just like real hardware. I'm sure there are
bugs if you look hard enough, but that's a somewhat different issue.
Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-09 15:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 13:07 [Qemu-devel] Port Qemu to another ARM platform Christian Roepke
-- strict thread matches above, loose matches on Subject: below --
2006-08-08 15:04 Christian Roepke
2006-08-08 15:12 ` Paul Brook
2006-08-09 15:18 ` Christian Roepke
2006-08-09 15:56 ` Paul Brook
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).