qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?
@ 2006-09-12 15:08 Laurent DESNOGUES
  2006-09-12 15:19 ` Markus Schiltknecht
  0 siblings, 1 reply; 13+ messages in thread
From: Laurent DESNOGUES @ 2006-09-12 15:08 UTC (permalink / raw)
  To: Markus Schiltknecht, qemu-devel

> > The most complex thing to accurately simulate a modern
> > CPU (including ARMs) is the data cache and by far. 
> 
> Hm... you have to elaborate on that one. Aren't those caches like other 
> caches, too? With well known algorithms like LRU?

Data caches typically do many things in one cycle;  for
instance, if you make a load, it could start looking in
a small area between the cache and the core (called
write or store buffer) and at the same time look into
the real cache to find the data;  then depending on the
outcome, an external request could be started, this
cycle or later depending on previous requests still
pending.  And this is a simple example ;)

On top of that try to find a specification for data
side behaviour, these beasts are not documented for
two reasons:
- they are heavily optimized and so not easily
  described
- they often define the efficiency of a CPU and
  so are considered as secret.

> Simulating branch prediction seems more complex to me (probably because 
> I'm thinking x86, not ARM).

Branch prediction has become very complex on ARM
but not as much as data side.


Laurent

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?
@ 2006-09-12 15:26 Laurent DESNOGUES
  0 siblings, 0 replies; 13+ messages in thread
From: Laurent DESNOGUES @ 2006-09-12 15:26 UTC (permalink / raw)
  To: Markus Schiltknecht; +Cc: qemu-devel

> > On top of that try to find a specification for data

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?
@ 2006-09-12 14:44 Laurent DESNOGUES
  2006-09-12 14:58 ` Markus Schiltknecht
  2006-09-12 17:42 ` K. Richard Pixley
  0 siblings, 2 replies; 13+ messages in thread
From: Laurent DESNOGUES @ 2006-09-12 14:44 UTC (permalink / raw)
  To: qemu-devel

> Now, CPUs is where I have only a vague idea of what would be needed to 
> simulate. I know there are up to three levels of caches and main memory, 
> which all have different access times. The CPU itself has a pipeline and 
> branch prediction and such which could invalidate the contents of 
> pipeline up to a given point (of branching).
> 
> I think the most time consuming operation which should be properly 
> simulated is memory access. For this to work properly, all levels of 
> caches must be emulated, too.
> 
> How much do misses on the branch prediction level cost? How much 
> pipeline interlocks? I don't think those would be _that_ dramatic. Since 
> today's compilers are said to be optimizing quite well...

The most complex thing to accurately simulate a modern
CPU (including ARMs) is the data cache and by far.  In
comparison, getting accurate core pipeline simulation
is *very* easy.

There is a company that claims to be able to accurately
simulate an at 200 Mhz (http://www.vastsystems.com).  I
bet there are using statistical cycle counting and so
are probably very wrong :)


Laurent

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: qemu-system-sparc video problem on 16 bitdisplays
@ 2006-09-12  0:17 Stuart Brady
  2006-09-12  7:20 ` [Qemu-devel] ARM CPU Speed simulated by Qemu? Tieu Ma Dau
  0 siblings, 1 reply; 13+ messages in thread
From: Stuart Brady @ 2006-09-12  0:17 UTC (permalink / raw)
  To: qemu-devel

On Fri, Sep 08, 2006 at 09:26:52PM +0200, Blue Swirl wrote:
> Implementing full audio support for CS4231 would not be too difficult. Is 
> this chip used anywhere else? The data sheet mentions some ISA card and 
> Windows 3.1.

The "Windows Sound System" cards apparently used it.
-- 
Stuart Brady

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

end of thread, other threads:[~2006-09-12 17:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12 15:08 [Qemu-devel] ARM CPU Speed simulated by Qemu? Laurent DESNOGUES
2006-09-12 15:19 ` Markus Schiltknecht
  -- strict thread matches above, loose matches on Subject: below --
2006-09-12 15:26 Laurent DESNOGUES
2006-09-12 14:44 Laurent DESNOGUES
2006-09-12 14:58 ` Markus Schiltknecht
2006-09-12 17:42 ` K. Richard Pixley
2006-09-12  0:17 [Qemu-devel] Re: qemu-system-sparc video problem on 16 bitdisplays Stuart Brady
2006-09-12  7:20 ` [Qemu-devel] ARM CPU Speed simulated by Qemu? Tieu Ma Dau
2006-09-12 11:03   ` nyos
2006-09-12 12:43   ` Paul Brook
2006-09-12 13:19     ` Markus Schiltknecht
2006-09-12 13:39       ` Paul Brook
2006-09-12 14:21         ` Markus Schiltknecht
2006-09-12 14:34           ` 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).