From: Leon Alrae <leon.alrae@imgtec.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] target-mips: Correct 32-bit address space wrapping
Date: Fri, 12 Dec 2014 12:19:46 +0000 [thread overview]
Message-ID: <548ADD62.9030009@imgtec.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1412051848280.19155@tp.orcam.me.uk>
On 05/12/2014 18:55, Maciej W. Rozycki wrote:
> On Thu, 4 Dec 2014, Leon Alrae wrote:
>
>>> Index: qemu-git-trunk/target-mips/translate.c
>>> ===================================================================
>>> --- qemu-git-trunk.orig/target-mips/translate.c 2014-11-12 07:41:26.597542010 +0000
>>> +++ qemu-git-trunk/target-mips/translate.c 2014-11-12 07:41:26.597542010 +0000
>>> @@ -10724,6 +10724,7 @@ static void gen_mips16_save (DisasContex
>>> {
>>> TCGv t0 = tcg_temp_new();
>>> TCGv t1 = tcg_temp_new();
>>> + TCGv t2 = tcg_temp_new();
>>> int args, astatic;
>>>
>>> switch (aregs) {
>>> @@ -10782,7 +10783,8 @@ static void gen_mips16_save (DisasContex
>>> gen_load_gpr(t0, 29);
>>>
>>> #define DECR_AND_STORE(reg) do { \
>>> - tcg_gen_subi_tl(t0, t0, 4); \
>>> + tcg_gen_movi_tl(t2, -4); \
>>
>> Wouldn't it be better to move this line outside of the macro to avoid
>> generating unnecessary tcg ops? DECR_AND_STORE is called multiple times
>> and t2 doesn't change in-between.
>
> It would. This code isn't wrong though unlike our current version,
> this is merely a pessimisation. An update will require a costly
> regression test rerun and therefore I'll give the priority to the
> outstanding changes I have before going back to this change. Thanks for
> the tip and your review.
Since above issue is minor we can correct it with incremental patch later.
I applied all the patches (excluding two patches touching machine.c)
which were sent prior to IEEE 754-2008 series to mips-next branch,
thanks. I'm intending to send out mips-next branch next week.
Regards,
Leon
next prev parent reply other threads:[~2014-12-12 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 17:29 [Qemu-devel] [PATCH] target-mips: Correct 32-bit address space wrapping Maciej W. Rozycki
2014-12-04 16:50 ` Leon Alrae
2014-12-05 18:55 ` Maciej W. Rozycki
2014-12-12 12:19 ` Leon Alrae [this message]
2014-12-15 18:07 ` Maciej W. Rozycki
2014-12-18 10:16 ` Leon Alrae
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=548ADD62.9030009@imgtec.com \
--to=leon.alrae@imgtec.com \
--cc=aurelien@aurel32.net \
--cc=macro@codesourcery.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 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.