qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question about memory micro operations in Qemu 0.12.x
@ 2010-03-26 20:23 coopht
       [not found] ` <20100327094900.GA4172@zubnet.me.uk>
  0 siblings, 1 reply; 4+ messages in thread
From: coopht @ 2010-03-26 20:23 UTC (permalink / raw)
  To: qemu-devel

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.

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

* [Qemu-devel] Question about memory micro operations in Qemu 0.12.x
  2010-03-26 22:22 ` Aurelien Jarno
@ 2010-03-27  6:20   ` coopht
  2010-03-27  9:52     ` Stuart Brady
  0 siblings, 1 reply; 4+ messages in thread
From: coopht @ 2010-03-27  6:20 UTC (permalink / raw)
  To: qemu-devel

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.

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

* Re: [Qemu-devel] Question about memory micro operations in Qemu 0.12.x
  2010-03-27  6:20   ` [Qemu-devel] Question about memory micro operations in Qemu 0.12.x coopht
@ 2010-03-27  9:52     ` Stuart Brady
  0 siblings, 0 replies; 4+ messages in thread
From: Stuart Brady @ 2010-03-27  9:52 UTC (permalink / raw)
  To: qemu-devel

On Sat, Mar 27, 2010 at 09:20:51AM +0300, coopht@gmail.com wrote:
> My question is : how memory access microoperations are now
> implemented in qemu 0.12.x ?

We heard you the first time. :-)

Cheers,
-- 
Stuart Brady

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

* Re: [Qemu-devel] Question about memory micro operations in Qemu 0.12.x
       [not found] ` <20100327094900.GA4172@zubnet.me.uk>
@ 2010-03-29  7:30   ` Alexander
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander @ 2010-03-29  7:30 UTC (permalink / raw)
  To: qemu-devel, coopht

Thank you for your answer.

I still have some questions.

27.03.2010 12:49, Stuart Brady пишет:
> 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.
>    

1. How can I remove TLB lookups from tcg_out_qemu_{ld,st} ?

> 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.
>    
2. Can you give me some examples of it ?
> Cheers,
>    

Thanks for your help.

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

end of thread, other threads:[~2010-03-29  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 20:23 [Qemu-devel] Question about memory micro operations in Qemu 0.12.x coopht
     [not found] ` <20100327094900.GA4172@zubnet.me.uk>
2010-03-29  7:30   ` Alexander
  -- strict thread matches above, loose matches on Subject: below --
2010-03-19 10:31 [Qemu-devel] [PATCH] remove remaining occurrences AREG[1-9] and TCG_AREG[1-9] Paolo Bonzini
2010-03-26 22:22 ` Aurelien Jarno
2010-03-27  6:20   ` [Qemu-devel] Question about memory micro operations in Qemu 0.12.x coopht
2010-03-27  9:52     ` Stuart Brady

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).