From: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: laurent.desnogues@gmail.com,
Peter Maydell <peter.maydell@linaro.org>,
chenwj@iis.sinica.edu.tw, qemu-devel@nongnu.org,
e.voevodin@samsung.com
Subject: Re: [Qemu-devel] [RFC][PATCH v2 2/4] tcg: add extended MMU helpers to softmmu targets
Date: Fri, 06 Jul 2012 21:16:08 +0900 [thread overview]
Message-ID: <4FF6D708.4030908@samsung.com> (raw)
In-Reply-To: <CAAu8pHsPkjN_WzFfGUwF627GDaGxN0-DKNUkXVXCdVYs_-_jkQ@mail.gmail.com>
On 2012년 07월 06일 03:49, Blue Swirl wrote:
> On Thu, Jul 5, 2012 at 1:43 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 5 July 2012 14:23, Yeongkyoon Lee <yeongkyoon.lee@samsung.com> wrote:
>>> Add extended MMU helpers to softmmu targets, where the targets are alpha, arm, cris, i386, lm32, m68k, microblaze, mips, ppc, s390x, sh4, sparc and xtensa.
>>>
>>> Signed-off-by: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
>>> ---
>>> target-alpha/mem_helper.c | 22 ++++++++++++++++++++++
>>> target-arm/op_helper.c | 23 +++++++++++++++++++++++
>>> target-cris/op_helper.c | 22 ++++++++++++++++++++++
>>> target-i386/mem_helper.c | 22 ++++++++++++++++++++++
>>> target-lm32/op_helper.c | 23 ++++++++++++++++++++++-
>>> target-m68k/op_helper.c | 22 ++++++++++++++++++++++
>>> target-microblaze/op_helper.c | 22 ++++++++++++++++++++++
>>> target-mips/op_helper.c | 22 ++++++++++++++++++++++
>>> target-ppc/mem_helper.c | 22 ++++++++++++++++++++++
>>> target-s390x/op_helper.c | 22 ++++++++++++++++++++++
>>> target-sh4/op_helper.c | 22 ++++++++++++++++++++++
>>> target-sparc/ldst_helper.c | 23 +++++++++++++++++++++++
>>> target-xtensa/op_helper.c | 22 ++++++++++++++++++++++
>>> 13 files changed, 288 insertions(+), 1 deletions(-)
>> This makes the already slightly repetitive inclusion of the
>> softmmu_templates even more repetitive. Perhaps we could abstract
>> it all out into a single header which the targets can include?
> I'd just replace standard versions with extended versions
> unconditionally, no CONFIG_*. Both AREG0 and !AREG0 cases must be
> handled.
>
I've only modified the code related to the MMU call from generated code
because this patch is focused optimize that kind of runtime generated
code. As I mentioned another thread, basically I agree to apply AREG0
case if ldst optimization is accepted as default (no macros).
But when replacing standard versions with extended versions, there is an
issue of non-x86 (and x64) hosts which has no ldst optimization impl. It
needs to conserve the usage of conditional macro for standard versions,
however, it looks better have a type of version per a host, which is
different from current my patch.
How do you think about it?
next prev parent reply other threads:[~2012-07-06 12:16 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
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 [this message]
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=4FF6D708.4030908@samsung.com \
--to=yeongkyoon.lee@samsung.com \
--cc=blauwirbel@gmail.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.