From patchwork Wed Aug 17 20:46:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [049/111] m68k: asl/asr, clear C flag if shift count is 0 Date: Wed, 17 Aug 2011 10:46:54 -0000 From: Bryce Lanham X-Patchwork-Id: 110430 Message-Id: <1313614076-28878-50-git-send-email-blanham@gmail.com> To: qemu-devel@nongnu.org Cc: Laurent Vivier From: Laurent Vivier Signed-off-by: Laurent Vivier --- target-m68k/helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index a3a6108..5800a4f 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -808,7 +808,7 @@ uint32_t HELPER(glue(glue(sal, bits),_cc))(CPUState *env, uint32_t val, uint32_t }\ if (shift == 0) { \ result = (type)val; \ - cf = env->cc_src & CCF_C; \ + cf = 0; \ } else if (shift < bits) { \ result = (type)val << shift; \ cf = ((type)val >> (bits - shift)) & 1; \ @@ -837,7 +837,7 @@ uint32_t HELPER(glue(glue(sar, bits), _cc))(CPUState *env, uint32_t val, uint32_ shift &= 63; \ if (shift == 0) { \ result = (type)val; \ - cf = (env->cc_src & CCF_C) != 0; \ + cf = 0; \ } else if (shift < bits) { \ result = (type)val >> shift; \ cf = ((type)val >> (shift - 1)) & 1; \