qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: "浩倫 魏" <goberwei@yahoo.com.tw>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] What's the difference between "ld/st" and "qemu_ld/st" in TCG IR?
Date: Sat, 23 May 2015 15:21:26 -0700	[thread overview]
Message-ID: <5560FD66.4040400@twiddle.net> (raw)
In-Reply-To: <636961558.306257.1432383983549.JavaMail.yahoo@mail.yahoo.com>

On 05/23/2015 05:26 AM, 浩倫 魏 wrote:
> So there are some points that I hope you can help me out:
> 1. Is every guest load/store instruction would be translated to qemu_ld/st IR?

Yes.

> 2. What about another TCG IR "ld/st"? What kind of guest instructions would
> cause TCG generates that IRs and for what purpose?

For instance, vector instructions are often implemented without TCG 
temporaries, but instead using ld/st to load the data from the ENV pointer 
directly.  You can see that in the ARM and i386 targets.

Otherwise, there are sometimes less-used system values that do not warrent a 
TCG temporary.  You can see that in the alpha target.


r~

  reply	other threads:[~2015-05-23 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-23 12:26 [Qemu-devel] What's the difference between "ld/st" and "qemu_ld/st" in TCG IR? 浩倫 魏
2015-05-23 22:21 ` Richard Henderson [this message]
2015-05-24  0:10   ` 浩倫 魏

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=5560FD66.4040400@twiddle.net \
    --to=rth@twiddle.net \
    --cc=goberwei@yahoo.com.tw \
    --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).