qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] target-ppc: fix evmergelo and evmergelohi


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH] target-ppc: fix evmergelo and evmergelohi
Date: Sun, 12 Jul 2009 23:38:16 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Jun 04, 2009 at 01:46:41PM -0700, Nathan Froyd wrote:
> For 32-bit PPC targets, we translated:
> 
> evmergelo rX, rX, rY
> 
> as:
> 
> rX-lo = rY-lo
> rX-hi = rX-lo
> 
> which is wrong, because we should be transferring rX-lo first.  This
> problem is fixed by swapping the order in which we write the parts of
> rX.
> 
> Similarly, we translated:
> 
> evmergelohi rX, rX, rY
> 
> as:
> 
> rX-lo = rY-hi
> rX-hi = rX-lo
> 
> In this case, we can't swap the assignment statements, because that
> would just cause problems for:
> 
> evmergelohi rX, rY, rX
> 
> Instead, we detect the first case and save rX-lo in a temporary
> variable:
> 
> tmp = rX-lo
> rX-lo = rY-hi
> rX-hi = tmp
> 
> These problems don't occur on PPC64 targets because we don't split the
> SPE registers into hi/lo parts for such targets.
> 

Thanks, applied. 

Sorry for the delay I was away from QEMU for a few months. I am now
(slowly) start to work again on it. Don't hesitate to ping for other
patches I may have forget.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
address@hidden                 http://www.aurel32.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]