From: "Andreas Färber" <andreas.faerber@web.de>
To: malc <av1474@comtv.ru>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] tcg/ppc: Do not overwrite lower address word on Darwin and AIX
Date: Sun, 06 May 2012 22:33:52 +0200 [thread overview]
Message-ID: <4FA6E030.8000308@web.de> (raw)
In-Reply-To: <alpine.LNX.2.00.1205070001200.3127@linmac>
Am 06.05.2012 22:01, schrieb malc:
> On Sun, 6 May 2012, Andreas F?rber wrote:
>
>> For targets where TARGET_LONG_BITS != 32, i.e. 64-bit guests,
>> addr_reg is moved to r4. For hosts [without] TCG_TARGET_CALL_ALIGN_ARGS
>> either data_reg2 or data_reg or a masked version thereof would overwrite
>> r4. Place it in r5 instead, matching TCG_TARGET_CALL_ALIGN_ARGS hosts.
>>
>> This might explain crashes observed on Darwin/ppc but not on ppc64.
>>
>> Signed-off-by: Andreas F?rber <andreas.faerber@web.de>
>> ---
>> tcg/ppc/tcg-target.c | 4 ----
>> 1 files changed, 0 insertions(+), 4 deletions(-)
>>
>> diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c
>> index dc40716..4b85c89 100644
>> --- a/tcg/ppc/tcg-target.c
>> +++ b/tcg/ppc/tcg-target.c
>> @@ -816,11 +816,7 @@ static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc)
>> #else
>> tcg_out_mov (s, TCG_TYPE_I32, 3, addr_reg2);
>> tcg_out_mov (s, TCG_TYPE_I32, 4, addr_reg);
>> -#ifdef TCG_TARGET_CALL_ALIGN_ARGS
>> ir = 5;
>> -#else
>> - ir = 4;
>> -#endif
>> #endif
>>
>> switch (opc) {
>>
>
> Right you are.
Confirmed with qemu-system-x86_64 on Darwin/ppc - hangs without, works
with patch. Thanks for making me aware of that line of code. :)
I'll have a suggestion how to simplify your updated patch and will
resubmit fixed as [PATCH] series after testing. Hoping you can get a
non-Umlaut-broken version from Patchwork. ;)
Cheers,
Andreas
next prev parent reply other threads:[~2012-05-06 20:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 19:38 [Qemu-devel] [RFC] tcg/ppc: Do not overwrite lower address word on Darwin and AIX Andreas Färber
2012-05-06 20:01 ` malc
2012-05-06 20:33 ` Andreas Färber [this message]
2012-05-06 20:03 ` Andreas Färber
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=4FA6E030.8000308@web.de \
--to=andreas.faerber@web.de \
--cc=av1474@comtv.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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.