From patchwork Wed Oct 26 16:35:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 9397855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3447C60236 for ; Wed, 26 Oct 2016 17:32:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EA6229ADF for ; Wed, 26 Oct 2016 17:32:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62CB229B41; Wed, 26 Oct 2016 17:32:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 0933729ADF for ; Wed, 26 Oct 2016 17:32:43 +0000 (UTC) Received: from localhost ([::1]:36257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzRuD-0007YI-Id for patchwork-qemu-devel@patchwork.kernel.org; Wed, 26 Oct 2016 13:22:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzRBh-0002TH-Lx for qemu-devel@nongnu.org; Wed, 26 Oct 2016 12:36:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzRBe-00055D-4s for qemu-devel@nongnu.org; Wed, 26 Oct 2016 12:36:25 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:54648) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzRBd-00054d-QV for qemu-devel@nongnu.org; Wed, 26 Oct 2016 12:36:22 -0400 Received: from Quad.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LeyRX-1ch23Q2uat-00qkkm; Wed, 26 Oct 2016 18:36:11 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 26 Oct 2016 18:35:51 +0200 Message-Id: <1477499766-11722-2-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477499766-11722-1-git-send-email-laurent@vivier.eu> References: <1477499766-11722-1-git-send-email-laurent@vivier.eu> X-Provags-ID: V03:K0:uznIyi0baPgOUIbNopWBW4NgMxjFXMp/uLrzrRkMbiOquOTPkvh 9b2f6u2Gt7aCIo+GZmhWaWFgaN3y5v8MEIXhTIT5WwsUhDeW40aW+B+GwZFom7spuxrKT+O rNKAUcB61WaEh1XAlQQJAB+5NL4hIhF1FJ4x1XsgeP9sxd8O7qZwINvwYWSe48tVHzXVxqz BJU9X1tagf844Uqev8g1A== X-UI-Out-Filterresults: notjunk:1; V01:K0:YKP1Q+nkCaA=:rD41zP+K5tQHbM8nRcUKWP We4rWGXna6SG52RE6J2RNWlhDkqubahnu9Yw3GqiFVgXiKQ7nM18/qegI/KVHCmftVAul2BAA eYYx7HztZGSbw77cgHZwgoXxjjxd/CD5x0wTzLJePLe5KrQxMW+skLWVQ6eN1K+CxI8XbOy/5 OysLyPYAczK6uqQDs0+UEE3E0HCEJaG9xEOfPLSjzBtisYwhoH6uWZmJbI3NFJQ0m51wUABlM GmdH7S6szk0RnDAWuyGnffx+gLQQkXn6GcVuAH/lcu2cZjRbmRuqu7A66hlhPy5ygeibyYr6F X+MyP5qkU/fkxlGdWKj3vUNxHgLkMLB0iMTbrqqqLc/A8O1VqflxmLeoblMk5rS8ckyJNRjwG 4WcCkB43iQ1fstu6rbU/9VL+V5Xrgv2b+I+S+fwlLpJDC2k3ICQPzqrtlZhnptJ0+REwzIdPA UPH3XBBZUOBs4myWV6VlzZpWliZ3RIAt2QvJlaxoYhPvfJe+M/n+9NVjnC1IzQhf6w58ABPKN 6dX/WrpXKmSLZN/lAsIIoLqc/pyWCMf+/DPrhXXf+NRkLc6feFwfLiq6qzSSrE9px6GJq3qhI f6RhNeiAXynIKTPr6bIkZhHVGrpgEHhZXIcUVi8zyjJC2P+eU55DutOcglo4jHkGtm6SBw17G 7NA7HQbR27FbWG1aQgh0DMK3pgXEJTwJrQIfgoi2cnFGsLwPFIZoFMGnWPEzs4B0xKyQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.134 Subject: [Qemu-devel] [PATCH 01/16] target-m68k: add bkpt instruction 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, Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/translate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 6c6173a..a128b67 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -1639,6 +1639,11 @@ DISAS_INSN(swap) gen_logic_cc(s, reg, OS_LONG); } +DISAS_INSN(bkpt) +{ + gen_exception(s, s->pc - 2, EXCP_DEBUG); +} + DISAS_INSN(pea) { TCGv tmp; @@ -3056,6 +3061,7 @@ void register_m68k_insns (CPUM68KState *env) INSN(move_to_sr, 46c0, ffc0, CF_ISA_A); BASE(pea, 4840, ffc0); BASE(swap, 4840, fff8); + INSN(bkpt, 4848, fff8, BKPT); BASE(movem, 48c0, fbc0); BASE(ext, 4880, fff8); BASE(ext, 48c0, fff8);