From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn3d-0008I7-W3 for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qtn3O-0006pJ-P3 for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:49:49 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:56101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtn3O-0006e8-2m for qemu-devel@nongnu.org; Wed, 17 Aug 2011 16:49:34 -0400 Received: by mail-yw0-f45.google.com with SMTP id 9so1229540ywf.4 for ; Wed, 17 Aug 2011 13:49:28 -0700 (PDT) From: Bryce Lanham Date: Wed, 17 Aug 2011 15:46:48 -0500 Message-Id: <1313614076-28878-44-git-send-email-blanham@gmail.com> In-Reply-To: <1313614076-28878-1-git-send-email-blanham@gmail.com> References: <1313614076-28878-1-git-send-email-blanham@gmail.com> Subject: [Qemu-devel] [PATCH 043/111] m68k: on 0 bit shift, don't update X flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent Vivier From: Laurent Vivier Signed-off-by: Laurent Vivier --- target-m68k/helper.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 451b02a..1c3dd72 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -660,7 +660,7 @@ uint32_t HELPER(glue(glue(shl, bits),_cc))(CPUState *env, uint32_t val, uint32_t cf = 0; \ } \ env->cc_src = cf; \ - env->cc_x = (cf != 0); \ + if (shift) env->cc_x = (cf != 0); \ env->cc_dest = result; \ return result; \ } @@ -689,7 +689,7 @@ uint32_t HELPER(glue(glue(shr, bits), _cc))(CPUState *env, uint32_t val, uint32_ cf = 0; \ } \ env->cc_src = cf; \ - env->cc_x = (cf != 0); \ + if (shift) env->cc_x = (cf != 0); \ env->cc_dest = result; \ return result; \ } @@ -715,7 +715,7 @@ uint32_t HELPER(glue(glue(sar, bits), _cc))(CPUState *env, uint32_t val, uint32_ cf = (type)val >> (bits - 1); \ } \ env->cc_src = cf; \ - env->cc_x = cf; \ + if (shift) env->cc_x = (cf != 0); \ env->cc_dest = result; \ return result; \ } -- 1.7.2.3