All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: laurent.desnogues@gmail.com, chenwj@iis.sinica.edu.tw,
	qemu-devel@nongnu.org, e.voevodin@samsung.com
Subject: Re: [Qemu-devel] [RFC][PATCH v2 1/4] tcg: add declarations and templates of extended MMU helpers
Date: Fri, 06 Jul 2012 19:30:22 +0900	[thread overview]
Message-ID: <4FF6BE3E.8040808@samsung.com> (raw)
In-Reply-To: <CAFEAcA9eFpc6khJNe1NkSWXo+3n31E+47_ahPVuFtjSk33NonA@mail.gmail.com>

>> Add declarations and templates of extended MMU helpers which can take return address argument to what helper functions return. These extended helper functions are called only by generated code.
> It's not entirely clear from this description what the
> return address argument actually is.
My commit message might give confusion. The return address is originally 
expressed as "retaddr" in softmmu_template.h. It means the runtime host 
pc which access guest memory. In previous standard MMU helpers, the 
address is the caller's pc of MMU helper calculated from GETPC(), 
however, in new optimized MMU helpers, the address is different from the 
caller's pc because the call site is located end of TB.
> Also, please line wrap your commit messages.
I didn't know the line wrap rule of commit message. Is the rule included 
in checkpatch.pl? Let me check it.
>> +#if defined(CONFIG_QEMU_LDST_OPTIMIZATION)
>> +/* Extended versions of MMU helpers for qemu_ld/st optimization.
>> +   They get return address arguments because the caller PCs are not where helpers return to. */
> This is >80 characters ; please use checkpatch.pl.
Ok.
>> +uint8_t __ext_ldb_mmu(target_ulong addr, int mmu_idx, uintptr_t ra);
> '__' is a prefix reserved for the system. I know we have existing usage
> of it, but I think it would be better to avoid adding new uses.
Ok, I'll fix it.
>> +#ifdef USE_EXTENDED_HELPER
>> +/* Exteneded helper funtions have one more argument of address
>> +   to which pc is returned after setting TLB entry */
> "Extended". "functions".
Ok.

  reply	other threads:[~2012-07-06 10:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 13:23 [Qemu-devel] [RFC][PATCH v2 0/4] tcg: enhance code generation quality for qemu_ld/st IRs Yeongkyoon Lee
2012-07-05 13:23 ` [Qemu-devel] [RFC][PATCH v2 1/4] tcg: add declarations and templates of extended MMU helpers Yeongkyoon Lee
2012-07-05 13:40   ` Peter Maydell
2012-07-06 10:30     ` Yeongkyoon Lee [this message]
2012-07-06 10:35       ` 陳韋任 (Wei-Ren Chen)
2012-07-05 13:23 ` [Qemu-devel] [RFC][PATCH v2 2/4] tcg: add extended MMU helpers to softmmu targets Yeongkyoon Lee
2012-07-05 13:43   ` Peter Maydell
2012-07-05 18:49     ` Blue Swirl
2012-07-06 12:16       ` Yeongkyoon Lee
2012-07-05 13:23 ` [Qemu-devel] [RFC][PATCH v2 3/4] tcg: add optimized TCG qemu_ld/st generation Yeongkyoon Lee
2012-07-05 14:04   ` Peter Maydell
2012-07-06 11:20     ` Yeongkyoon Lee
2012-07-06 11:28       ` Peter Maydell
2012-07-05 13:23 ` [Qemu-devel] [RFC][PATCH v2 4/4] configure: add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization Yeongkyoon Lee
2012-07-05 13:55   ` Andreas Färber
2012-07-06  3:13     ` Evgeny Voevodin
2012-07-05 14:06   ` Peter Maydell
2012-07-05 14:26     ` Laurent Desnogues
2012-07-06 11:43     ` Yeongkyoon Lee
2012-07-07  7:51       ` Blue Swirl
2012-07-08  8:35         ` Yeongkyoon Lee
2012-07-10  9:12 ` [Qemu-devel] [RFC][PATCH v2 0/4] tcg: enhance code generation quality for qemu_ld/st IRs Yeongkyoon Lee

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=4FF6BE3E.8040808@samsung.com \
    --to=yeongkyoon.lee@samsung.com \
    --cc=chenwj@iis.sinica.edu.tw \
    --cc=e.voevodin@samsung.com \
    --cc=laurent.desnogues@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 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.