All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: 陳韋任 <chenwj@iis.sinica.edu.tw>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] When the tlb_fill will be called from generated code?
Date: Tue, 27 Sep 2011 09:06:55 +0200	[thread overview]
Message-ID: <4E81760F.809@web.de> (raw)
In-Reply-To: <20110927041528.GA74070@cs.nctu.edu.tw>

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

On 2011-09-27 06:15, 陳韋任 wrote:
> Hi, all
> 
>   The comment above tlb_fill says:
> 
>     /* try to fill the TLB and return an exception if error. If retaddr is
>        NULL, it means that the function was called in C code (i.e. not
>        from generated code or from helper.c) */
> 
> I see tlb_fill only be called from softmmu_template.h (i.e., C code). I
> am wondering when/where the tlb_fill is called from generated code (code
> cache) or from helper.c.
> 

You can find the answer yourself: Load qemu into gdb, set a breakpoint
on that function and let it run. If you want to catch only the retaddr
== NULL case, make the breakpoint conditional.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2011-09-27  7:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27  4:15 [Qemu-devel] When the tlb_fill will be called from generated code? 陳韋任
2011-09-27  7:06 ` Jan Kiszka [this message]
2011-09-27 11:02   ` 陳韋任
2011-09-27 11:29     ` Max Filippov
2011-09-28  3:51       ` 陳韋任
2011-09-28  6:36         ` Max Filippov
2011-09-29  3:40         ` Mulyadi Santosa
2011-09-29  3:45           ` 陳韋任
2011-09-27 17:10     ` Blue Swirl
2011-09-28  2:32       ` 陳韋任

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=4E81760F.809@web.de \
    --to=jan.kiszka@web.de \
    --cc=chenwj@iis.sinica.edu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.