From patchwork Thu Jun 2 01:33:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 578090 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp112512max; Wed, 1 Jun 2022 18:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzb37YdDZUXzIJqm9qsmINS6M7t3ZwSbnolNO/3tGxxqhKi94WF88vYiCKoKdsKpTpfQdU X-Received: by 2002:a05:6214:76e:b0:467:cf81:7f3e with SMTP id f14-20020a056214076e00b00467cf817f3emr238782qvz.89.1654134840546; Wed, 01 Jun 2022 18:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654134840; cv=none; d=google.com; s=arc-20160816; b=dSLdOHzaLnCPs+lRSZqeNUrTp8Dl/jxfJYO1hlT6yJ6r9+2IHcrL0Iud//XZmyllsJ HbyflXO/bjMsHiYccAMc61RNvcpI52Z7cQ/kSA+3u7PpaN0H4+dhZw3sQntkrrer5cMo ueWKfGbbtEcSfgEXyY2ItsDola9NDTJwV0XIBz+Eu4okIN2sLlDFRTXtB7BxxLpEceSl I4xhc0rjaImJP0vIl1QwJRrD8NwvUfbmgSvo9H9ex8z16zqcvs9ShpIUpoC8kqEDNO9Z jyXZvtruwvLrP4QaZlMjrQMWp10Pm/qUIclZbLPraFF39IcurUrqMsqKl3dqUODRtUSA ItcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L/s5DB9oA5m3J3r5mnRcmLEGwctJwKQaqGAa+nl3EZs=; b=gobBNvHB2h7jmWxEsLM7MqIWn4fqqM1f5xv0aOIUiNC8N9Lcw5HBD04I4otGbzK+uQ VokbLLwAWt0rokm9u1GUDHMzIdlicEnjF99bRlQE7WzUR12X+pUQNUcmXk+7yStgKdY2 xi/rTbUiY84gNh64tKrofWGItwuOoDTWgY0YC3XQDzclmvHHJi+KSZaFQ7wbLqFOyI4e bPSZ9HuxFnKUPQYr0DYMG41Z5RK8K0AUiP2Xfl0F6ioaetfbzEkLcGqZL3KFy8DPV8iB wOCAUCZNbb7tNMUF7mWSZ2ijj1lrHvgU/+OXZ9BXwp/t8a3pG183v1Jk1j+reHFqHeAz i4Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xwtzXLAh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r4-20020a05622a034400b003019c38815asi1651012qtw.456.2022.06.01.18.54.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Jun 2022 18:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xwtzXLAh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwa2C-00071B-5i for patch@linaro.org; Wed, 01 Jun 2022 21:54:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwZjL-0002hL-Av for qemu-devel@nongnu.org; Wed, 01 Jun 2022 21:34:31 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:35486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwZjI-0005Ht-Q7 for qemu-devel@nongnu.org; Wed, 01 Jun 2022 21:34:31 -0400 Received: by mail-pj1-x1034.google.com with SMTP id o6-20020a17090a0a0600b001e2c6566046so7988838pjo.0 for ; Wed, 01 Jun 2022 18:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L/s5DB9oA5m3J3r5mnRcmLEGwctJwKQaqGAa+nl3EZs=; b=xwtzXLAhoMju4N5qLw1tZp4zDEkGY2MnVNNFRnFL5fYtcu4T5Ci7yvpHqbd/UXctWB CM0n4SmJqdbGOIpb43GpyJhaxdUhUOvRJzR80VGtde0U5WYa7KHfZF7yiPd+STJD+m/k +kc3dxv0MgskyzudzhvK8fU2J8EA51ZbhgQ3lSqn5entGdqhi7SFjT3eopHvXk8Jmf7p Rnfdp09Yn2e3CAAqszaqxTYKKAROAQVc+apG3Rlwpk9qo2BqrCw6dIrqf/V1SmpfGPOW m0g6eityYLZWmFwM3AjFQa+Iw311sQoz1R+dKgs935u4oa135TVPKG9AIlD0fEQ6q9JG YwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=L/s5DB9oA5m3J3r5mnRcmLEGwctJwKQaqGAa+nl3EZs=; b=qQinrN6fbLNaMFzAh1qILcn4xSaN8JhfurzO3dAy8KnMwI7ht4mJBxeVSc62Ckl0yr PX+BC/RnjPZobOITByXmXqUdlTPgGCUi9ghXicMYv7eNhYtPEJdOcXbgTeClxMjJj5lZ 5QEL40V/Fim2i9vF/ez2x4q5LyHZqakmRvs0WXh3vDhiqp5iba0CS7I+fvsm3Xb2K+q4 3oSyMut1GbXbwj2oPcooKTKpds9iK9Wb9MEVdAhnAaAOPhKOC86Lm/hdpqyEBszt2e7q kEZLhqZ1c0ormyOxianrjFxTgPhKCZNDvEbJjMaz2CCbQhRLGVbcl07sPF2CP6WVBiE8 p+pA== X-Gm-Message-State: AOAM531wEzaWL0EzOhEeMh+iHKRY4LbtF6owO/LJSuJPHINK5g7v+jlY NH/j2OPaPYcq69hSmxD3MPrvyqWdkHizwA== X-Received: by 2002:a17:90a:fe0d:b0:1e2:e9bf:1139 with SMTP id ck13-20020a17090afe0d00b001e2e9bf1139mr2442184pjb.106.1654133658860; Wed, 01 Jun 2022 18:34:18 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:1eca:8ee3:9269:e00c]) by smtp.gmail.com with ESMTPSA id l191-20020a6391c8000000b003fc5b1db26fsm1962875pge.52.2022.06.01.18.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 18:34:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v6 12/17] target/m68k: Implement TRAPV Date: Wed, 1 Jun 2022 18:33:56 -0700 Message-Id: <20220602013401.303699-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220602013401.303699-1-richard.henderson@linaro.org> References: <20220602013401.303699-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- target/m68k/translate.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 83c2f73063..fa704e0c25 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -4910,6 +4910,14 @@ DISAS_INSN(trapcc) do_trapcc(s, &c); } +DISAS_INSN(trapv) +{ + DisasCompare c; + + gen_cc_cond(&c, s, 9); /* V set */ + do_trapcc(s, &c); +} + static void gen_load_fcr(DisasContext *s, TCGv res, int reg) { switch (reg) { @@ -6073,6 +6081,7 @@ void register_m68k_insns (CPUM68KState *env) BASE(nop, 4e71, ffff); INSN(rtd, 4e74, ffff, RTD); BASE(rts, 4e75, ffff); + INSN(trapv, 4e76, ffff, M68000); INSN(rtr, 4e77, ffff, M68000); BASE(jump, 4e80, ffc0); BASE(jump, 4ec0, ffc0);