From patchwork Wed May 4 21:20:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 9018851 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0BF4EBF29F for ; Wed, 4 May 2016 21:22:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79FDA203DC for ; Wed, 4 May 2016 21:22:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4A77203DA for ; Wed, 4 May 2016 21:22:09 +0000 (UTC) Received: from localhost ([::1]:50350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4FC-0000Yt-1A for patchwork-qemu-devel@patchwork.kernel.org; Wed, 04 May 2016 17:22:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4Ez-0000J1-2O for qemu-devel@nongnu.org; Wed, 04 May 2016 17:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ay4En-0006OA-CW for qemu-devel@nongnu.org; Wed, 04 May 2016 17:21:47 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:61957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4En-0006HF-4E for qemu-devel@nongnu.org; Wed, 04 May 2016 17:21:41 -0400 Received: from Quad.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LxOmo-1bhlu53xTW-0170BY; Wed, 04 May 2016 23:21:24 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 4 May 2016 23:20:58 +0200 Message-Id: <1462396869-22424-2-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1462396869-22424-1-git-send-email-laurent@vivier.eu> References: <1462392752-17703-1-git-send-email-laurent@vivier.eu> <1462396869-22424-1-git-send-email-laurent@vivier.eu> X-Provags-ID: V03:K0:k4i8V6iqFpJf0cg4sI0YEr8mzzt2C42mokwZwfWMZMSpR+GFlpW Jl6JbQ7wIco5tR4cALDc7/kPgcG/iHLT4dXgoUSwRPN8I2GJIjMLus4bTwD6VRwBX7cnhBl ILXiPGLCyDqfDb2XO9+F2c/J425CunQDFtDjcQ3oiDA0Ebu9NB1V25f23LZHHVweDNG7/9+ qODJ8Tb1emM/ekShY4NgA== X-UI-Out-Filterresults: notjunk:1; V01:K0:QLBkNy7D/eQ=:LU9DwEtYjfHJmq8LOYgzCA NxUULGC+a5vSf7fNc3IJHCIlJ7JQ2qoHDhm0dC47R0Qw6cBhTZPAdllHE1FpDLV1z95sSrQbI E7PhfJJBtIziCGdow/k905AcHAPXyiE8v8fXRSh8aTHdoXWGrQFZnZyezXLR63W6z5LONmxrf +urk5/ux0fjtagE98jeV7C4rZbYKjfaOK65lXDFiCKXBVQ5tu2WNc34fTvfSHDF02rYMc4YeL cHhWIn3tjSmge0MFcv5V/ISUC3ZRZeeZVbLM/BckU8H2LAM65UOhAD9CDgrqk+KrhsnQGC1v0 FIpRmmoTMuybcZtuGd/435tnFEr2Sai/6doxsbUlIeoy85a/V3SCkZYaNUgg3YNON1KrX0RHW /v9uwcSzSW8SyWxe43snNj2IRgFL3pYtWkI3zeUGSrnm0+cSQSVpjUl3g5KFJvl43pieOgWIf exVZAjPHudLTjwo0AkVjZ7a/1oSKCaAv6QxqF0q1J+2NzRWnE9FpKYO5HS4A4y8ahITR2YQaw kqOAgvyJ4Bd5FuLeUdbXDO+JlROovVzoNTonGjU42euPAgzoEHLEZpMs4wx2pe+TruwUMVbWB 1MZgkuo8D1oF/1RhauEb1FHjjxzrw/+fCpRnZSsmNh3mAoIx4Y1o1VWC57MhZQSB0WsqJsHPF DEjMy6KPgAfk6GOC6e3rla0WmnFjg9jgXYOie2mrnMvYbwOZMkImr544dxToLo3APXGo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PATCH 41/52] target-m68k: add addressing modes to not X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , gerg@uclinux.org, schwab@linux-m68k.org, agraf@suse.de, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/translate.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index df5ce94..1c3c9a2 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -2226,11 +2226,17 @@ DISAS_INSN(move_to_ccr) DISAS_INSN(not) { - TCGv reg; + TCGv src1; + TCGv dest; + TCGv addr; + int opsize; - reg = DREG(insn, 0); - tcg_gen_not_i32(reg, reg); - gen_logic_cc(s, reg, OS_LONG); + opsize = insn_opsize(insn); + SRC_EA(env, src1, opsize, 1, &addr); + dest = tcg_temp_new(); + tcg_gen_not_i32(dest, src1); + DEST_EA(env, insn, opsize, dest, &addr); + gen_logic_cc(s, dest, opsize); } DISAS_INSN(swap)