qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gaurav Sharma <gauravs.2010@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] When are register values committed to CPUARMState
Date: Tue, 1 Apr 2014 11:38:26 +0530	[thread overview]
Message-ID: <CABiB5K6ssf14bSH94VpGhdF-Tg2YzVS8gdEXv3xB-NmJj_E9Pw@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA8VupWd+q81Bc014442+kxCEtWaJ7W4uv3wgyQ8EPDN6A@mail.gmail.com>

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

Seems, I am bit confused. So if i have to dump the target cpu registers,
where would be the corresponding code to look into


On Tue, Apr 1, 2014 at 12:47 AM, Peter Maydell <peter.maydell@linaro.org>wrote:

> [put qemu-devel back on CC]
> On 31 March 2014 20:13, Gaurav Sharma <gauravs.2010@gmail.com> wrote:
> > On Mon, Mar 31, 2014 at 11:35 PM, Peter Maydell <
> peter.maydell@linaro.org>
> > wrote:
> >> On 31 March 2014 18:59, Gaurav Sharma <gauravs.2010@gmail.com> wrote:
> >> > I want to know, when are the register values committed to  CPUARMState
> >> > structure ?
> >>
> >> When they need to be. Mostly we keep register values in TCG
> >> globals,
> >
> >    >> By TCG globals here do we mean, cpu_R[] array, because if i see the
> > code for a simple add, i can see source and destination values for the
> TCG
> > ops being this array? In the init function isn't this array mapped on to
> > CPUARMState ?
>
> Yes, but...
>
> >> which means they're held in host registers except
> >> when calling helpers which might read or write globals
>
> ...as I say TCG is free to keep globals in host registers
> a lot of the time and only writes values back to the
> CPUARMState when it needs to.
>
> thanks
> -- PMM
>

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

      reply	other threads:[~2014-04-01  6:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 17:59 [Qemu-devel] When are register values committed to CPUARMState Gaurav Sharma
2014-03-31 18:05 ` Peter Maydell
     [not found]   ` <CABiB5K6F9hrJ9mhmxDCNv+txt40s=P-gk8AEHUUjnsaGOcyNbg@mail.gmail.com>
2014-03-31 19:17     ` Peter Maydell
2014-04-01  6:08       ` Gaurav Sharma [this message]

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=CABiB5K6ssf14bSH94VpGhdF-Tg2YzVS8gdEXv3xB-NmJj_E9Pw@mail.gmail.com \
    --to=gauravs.2010@gmail.com \
    --cc=peter.maydell@linaro.org \
    --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).