target-sparc: fix udiv(cc) and sdiv(cc)
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 25 Dec 2010 22:25:47 +0000 (23:25 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 28 Dec 2010 18:44:51 +0000 (18:44 +0000)
commitd654e7f1308ebaa83fcbcac8f229f8c04f38e7f5
tree573a6da62c47c03d8ed26a4867a093ed9805071c
parent28cb54693f13ccb6e482fb2ffdc3ee79bbb2a75b
target-sparc: fix udiv(cc) and sdiv(cc)

Since commit 5a4bb580cdb10b066f9fd67658b31cac4a4ea5e5, Xorg crashes on
a Debian Etch image. The commit itself is fine, but it triggers a bug
due to wrong computation of flags for udiv(cc) and sdiv(cc).

This patch only compute cc_src2 for the cc version of udiv/sdiv. It
also moves the update of cc_dst and cc_op to the helper, as it is
faster doing it here when there is already an helper.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/helper.h
target-sparc/op_helper.c
target-sparc/translate.c