target-ppc: Bug Fix: srad
commit4bc02e230d1e0fd41d2a892d81dcad56e3b3702d
authorTom Musta <tommusta@gmail.com>
Tue, 12 Aug 2014 13:45:10 +0000 (12 08:45 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:51 +0000 (8 12:50 +0200)
treeeb17fa63dd1aa3c834e4d0c8a7a01994f2d261c8
parent34a0fad10210a3e639a8e68323c923494047eefc
target-ppc: Bug Fix: srad

Fix the check for carry in the srad helper to properly construct
the mask -- a "1ULL" must be used (instead of "1") in order to
get the desired result.

Example:

R3 8000000000000000
R4 F3511AD4A2CD4C38
srad 3,3,4

Should *not* set XER[CA] but does without this patch.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/int_helper.c