From: Stuart Brady <sdb@zubnet.me.uk>
To: qemu-devel@nongnu.org, "coopht@gmail.com" <coopht@gmail.com>
Subject: Re: [Qemu-devel] Question about memory micro operations in Qemu 0.12.x]
Date: Sat, 27 Mar 2010 09:51:31 +0000 [thread overview]
Message-ID: <20100327095131.GA5268@zubnet.me.uk> (raw)
[ Sorry for sending twice, forgot to reply to the list ]
On Fri, Mar 26, 2010 at 11:23:30PM +0300, coopht@gmail.com wrote:
> Hello.
> in qemu 0.9.x there was a special file with micro-operations, which
> implemented access to memory. For example for arm architecture it
> was op_mem.h file. I was able to add some printfs to this functions
> and get information about memory accesses.
>
> My question is : how memory access microoperations are now
> implemented in qemu 0.12.x ?
>
> Thanks for you answers.
To generate load and store operations, tcg_gen_qemu_{ld,st}*() are now
used. See tcg/README for more information on TCG ops.
In tcg/*/tcg-target.c, you'll find tcg_out_qemu_{ld,st}(). The easiest
way to do this would probably be to place your printfs in __ld_mmu() and
__st_mmu() (which are defined via softmmu_template.h), and remove the
TLB lookups from tcg_out_qemu_{ld,st}() so that your tracing code is
always called.
Instead of modifying tcg_out_qemu_{ld,st}(), you might also be able to
bypass it entirely, by using having tcg_gen_qemu_{ld,st}*() generate
calls to a helper function.
Cheers,
--
Stuart Brady
reply other threads:[~2010-03-27 9:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100327095131.GA5268@zubnet.me.uk \
--to=sdb@zubnet.me.uk \
--cc=coopht@gmail.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).