qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kevin F. Quinn" <ml@kevquinn.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Missing ARMv6 instructions?
Date: Sun, 2 Apr 2006 03:26:04 +0200	[thread overview]
Message-ID: <20060402032604.77da0149@c1358217.kevquinn.com> (raw)
In-Reply-To: <2A5B7FED-E4B6-4F75-AB8C-31E9FD7B90B9@elis.ugent.be>

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

On Sat, 1 Apr 2006 23:06:07 +0300
Jonas Maebe <jonas.maebe@elis.ugent.be> wrote:

> On 01 Apr 2006, at 22:51, Chris Wilson wrote:
> 
> > and they have been an extensive user of software patents,
> 
> And how:
>    http://www.patent.gov.uk/patent/legal/summaries/2004/o29204.htm
> 
> "The invention in this case involves locating all of the input  
> registers in one data storage area, and all of the output registers  
> in another data storage area. Then the simulator only has to switch  
> the two storage areas around (eg. by exchanging two pointer values)  
> in order to effectively COPY all of the output registers to the  
> corresponding input registers of the next stage in a single  
> operation. The Hearing Officer concluded that this invention did  
> involve a technical contribution — not simply because it produced a  
> faster simulator, but because the fundamental construction of the  
> simulator had been modified."

I've got a better idea.  In an imaginary 3-stage pipeline, instead of
doing:

i1[*] -> <stage1> -> o1[*]
i2[*] -> <stage2> -> o2[*]
i3[*] -> <stage3> -> o3[*]
i2[*] = o1[*]
i3[*] = o2[*]
<commit o3[*]>

which the patent optimises to:

i1[*] -> <stage1> -> o1[*]
i2[*] -> <stage2> -> o2[*]
i3[*] -> <stage3> -> o3[*]
i2,o1 = o1,i2
i3,o2 = o2,i3
<commit o3[*]>

how about this:

o2i3[*] -> <stage3> -> o3[*]
o1i2[*] -> <stage2> -> o2i3[*]
i1[*] -> <stage1> -> o1i2[*]
<commit o3[*]>

which saves mucking around with pointers completely (requires the
stages are implemented sequentially not in pararllel, but since we're
talking about a software simulation that's likely to be the case).

Doesn't break the patent (well, the summary at least) and is a fraction
quicker :)

To be honest both optimisations are clearly obvious to anyone
sufficiently skilled in the field - maybe not so much to hardware
engineers who tend to think in parallel but certainly to software
engineers who tend to think in series.

> In fact, wouldn't surprise me if Qemu violates this patent.

Qemu doesn't simulate the pipeline as such as it emulates each
instruction completely before starting the next one.  Makes things much
simpler - if you don't simulate the pipeline, you don't have to
simulate flushing it etc :). The patent is talking about much deeper
simulation, probably for use in simulating the core in relation to
other components, or for use in accurate timing simulations.

-- 
Kevin F. Quinn

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2006-04-02  1:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29 12:33 [Qemu-devel] Missing ARMv6 instructions? Wolfgang Schildbach
2006-03-29 14:39 ` Paul Brook
2006-03-29 16:00   ` Wolfgang Schildbach
2006-03-29 20:39     ` Jamie Lokier
2006-03-29 22:01       ` Paul Brook
2006-03-29 22:36         ` John Hogerhuis
2006-03-29 22:37         ` Jamie Lokier
2006-03-30  9:22         ` Wolfgang Schildbach
2006-03-30 14:30           ` Jamie Lokier
2006-03-30 15:25             ` Lennert Buytenhek
2006-03-30 15:50               ` Paul Brook
2006-03-29 20:40     ` Jamie Lokier
2006-04-01 19:51     ` Chris Wilson
2006-04-01 20:06       ` Jonas Maebe
2006-04-02  1:26         ` Kevin F. Quinn [this message]
2006-04-02 16:32       ` Jamie Lokier
2006-04-02 16:42         ` Chris Wilson
2006-04-04 19:42           ` Daniel Jacobowitz
2006-04-05 14:41           ` Thiemo Seufer
2006-04-03  6:42         ` Karel Gardas
2006-04-03  7:00           ` M. Warner Losh
2006-04-03 12:42           ` Paul Brook

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=20060402032604.77da0149@c1358217.kevquinn.com \
    --to=ml@kevquinn.com \
    --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).