]> Git Repo - qemu.git/commit - target-ppc/translate.c
target-ppc: Bug Fix: srawi
authorTom Musta <[email protected]>
Tue, 12 Aug 2014 13:45:09 +0000 (08:45 -0500)
committerAlexander Graf <[email protected]>
Mon, 8 Sep 2014 10:50:50 +0000 (12:50 +0200)
commit34a0fad10210a3e639a8e68323c923494047eefc
treea9b3d5ad1e859f7d2afcbe12c18270575590a26e
parent9824d01d5d789a57d27360c0f5e8ee44955eb1d7
target-ppc: Bug Fix: srawi

For 64 bit implementations, the special case of a shift by zero
should result in the sign extension of the least significant 32 bits
of the source GPR (not a direct copy of the 64 bit source GPR).

Example:

R3 A6212433228F41DC
srawi 3,3,0
R3 expected : 00000000228F41DC
R3 actual   : A6212433228F41DC (without this patch)

Signed-off-by: Tom Musta <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
target-ppc/translate.c
This page took 0.025079 seconds and 4 git commands to generate.