From: Richard Henderson <richard.henderson@linaro.org>
To: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Using new TCG Vector infrastructure in PowerPC
Date: Fri, 16 Mar 2018 04:02:33 +0800 [thread overview]
Message-ID: <b8642b07-307a-6109-6350-e7830a1b7842@linaro.org> (raw)
In-Reply-To: <871sgwmcc3.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me>
On 03/07/2018 06:03 PM, Nikunj A Dadhania wrote:
> Hi Richard,
>
> I was working to get TCG vector support for PowerPC[1]. Started with
> converting logical operations like vector AND/OR/XOR and compare
> instructions. Found some inconsistency during my testing on x86 laptop
> emulating PowerPC:
Great.
Well, the problem is that you cannot use TCG generic vectors and TCG global
variables to access the same memory.
Thus your first step must be to remove all references to cpu_avrh and cpu_avrl.
These can be replaced by translator helpers that perform an explicit
tcg_gen_ld_i64 or tcg_gen_st_i64 to the proper memory locations.
Only after that's done can you begin converting other references to use the
host vectors. Otherwise, the tcg optimizer will do Bad and Unpredictable
Things, which may well have produced the incorrect results that you saw.
I'll note that it's probably worth rearranging all of {fpr,vsr,avr} to the more
logical configuration presented by Power7 (?) such that it's one array of 64 x
128-bit registers.
r~
next prev parent reply other threads:[~2018-03-15 20:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 10:03 [Qemu-devel] Using new TCG Vector infrastructure in PowerPC Nikunj A Dadhania
2018-03-15 20:02 ` Richard Henderson [this message]
2018-03-16 4:08 ` Nikunj A Dadhania
2018-03-16 7:01 ` Richard Henderson
2018-03-16 9:33 ` Nikunj A Dadhania
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=b8642b07-307a-6109-6350-e7830a1b7842@linaro.org \
--to=richard.henderson@linaro.org \
--cc=nikunj@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).