From patchwork Wed May 4 21:21:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 9018971 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAE589F39D for ; Wed, 4 May 2016 21:28:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 626CC203ED for ; Wed, 4 May 2016 21:28:50 +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 B8C30203EB for ; Wed, 4 May 2016 21:28:49 +0000 (UTC) Received: from localhost ([::1]:50409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4Ld-0004lX-Nd for patchwork-qemu-devel@patchwork.kernel.org; Wed, 04 May 2016 17:28:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4FE-0000iH-SE for qemu-devel@nongnu.org; Wed, 04 May 2016 17:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ay4F3-0006Yo-7F for qemu-devel@nongnu.org; Wed, 04 May 2016 17:22:03 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:56701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay4F2-0006Qx-UM for qemu-devel@nongnu.org; Wed, 04 May 2016 17:21:57 -0400 Received: from Quad.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MMnSJ-1b16ue2D8B-008XCL; Wed, 04 May 2016 23:21:43 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 4 May 2016 23:21:08 +0200 Message-Id: <1462396869-22424-12-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:+GMGBYRSHuOeMbfQqldcWIejey9KU1e6eL4wf6f1rBi0EGEWn+l mWObiUe4tjlTpDbW9xpt5yr++7vyb9dChVKPYmuR5vu+R8+62zwkmbTPeM6N/FIwqtjzrTZ kxU5xTeNWf6VNqLlG7yJZhDtT78Il5hbSijW7OR2u2wvFoAJ9XywQE+YYQ35wtRvq/wG+l1 Fy5c2UfJClvS1zyjn/Utg== X-UI-Out-Filterresults: notjunk:1; V01:K0:1JSIbxUEIOc=:UrdCDWjsB8YaDfBynHMiBV DfKu0R+Yoy6+48TVisr/tNtAjPy7VUl3Sbl9CSlJCFMxY03bobgDFWTHYTISBH5iFHjdF0wAh PnObdu1ORrdZ8+FIQ9Ednmyw0rhmFxJ+x0aCadHmtvlAF59+e+abRhrtMmKWodNlDjPo1xNvJ RngKCKhmDDkg50iwP/eTc9af5DRuPrji03kyC5h9G/ct2Qlgb/gzH5RhxIYxqFzIDd/nOscAx ronQOhRi3CP9232J+FWNtytF8EHWs6l9GlS/lWidJB7w8c4VXc0IPEviqudRYVUAkKEcnt2uH EiBQBBx+Cx1Eg4gH0Y/yPyfokIkmITf8qovIxX6WL+Ro7q5edXTRFO52qdvtyCtxe8n86BdTV mByjNKh4j5sQvsQ5ns+AsieSS1uxaOfYGWKb1hi4gH4Xkwfm5csnuEPtdAhoqO1C3L0LGuQfi rsCunMbHhlGEBd9T85b0zKb7b6DK6kv+8b3Iql8l/6tM/WM5PHmohtvOtMcrrhOlnNpILEwgz pPB9jsXNUAzYe2hMBOTBEXYs8BDDN6FzU3WWW01nhQGeCPtO724ovW5HYzQXO85TjvrpCb44A M1HF+1oETQQf15V1EBT46agXtyIE4IWPz01bwqEmcX3lmNU/D7okknSqKRPIEdIE22EKkIvuS mDyt/z3IdBppebefzcgVCNMVl8wG50kvkW2KDdbUZpyAyiGymnKjEUANeVfDWkZ0oOKM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PATCH 51/52] target-m68k: add cmpm 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 --- target-m68k/translate.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 029c166..2d92bdd 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -2758,6 +2758,26 @@ DISAS_INSN(cmpa) gen_update_cc_cmp(s, reg, src, opsize); } +DISAS_INSN(cmpm) +{ + TCGv src; + TCGv dest; + TCGv reg; + int opsize; + + opsize = insn_opsize(insn); + + reg = AREG(insn, 0); + src = gen_load(s, opsize, reg, 1); + tcg_gen_addi_i32(reg, reg, opsize_bytes(opsize)); + + reg = AREG(insn, 9); + dest = gen_load(s, opsize, reg, 1); + tcg_gen_addi_i32(reg, reg, opsize_bytes(opsize)); + + gen_update_cc_cmp(s, dest, src, opsize); +} + DISAS_INSN(eor) { TCGv src; @@ -4876,6 +4896,7 @@ void register_m68k_insns (CPUM68KState *env) INSN(cmpa, b1c0, f1c0, CF_ISA_A); INSN(cmp, b000, f100, M68000); INSN(eor, b100, f100, M68000); + INSN(cmpm, b108, f138, M68000); INSN(cmpa, b0c0, f0c0, M68000); INSN(eor, b180, f1c0, CF_ISA_A); BASE(and, c000, f000);