target-s390x: fix CC computation for EX instruction
commitee0d0be16819896cc6c8018cbe171a632b61489c
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 16 May 2015 23:28:03 +0000 (17 01:28 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 4 Jun 2015 23:37:57 +0000 (5 01:37 +0200)
treedaf230be44f659860769c6a5a702b081dc0345e1
parent3b730f570c5872ceea2137848f1d4554d4847441
target-s390x: fix CC computation for EX instruction

Commit 7a6c7067f optimized CC computation by only saving cc_op before
calling helpers as they either don't touch the CC or generate a new
static value. This however doesn't work for the EX instruction as the
helper changes or not the CC value depending on the actual executed
instruction (e.g. MVC vs CLC).

This patches force a CC computation before calling the helper. This
fixes random memory corruption occuring in guests.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
[agraf: remove set_cc_static in op_ex as suggested by rth]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/translate.c