From patchwork Thu Mar 9 20:16:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661120 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp502630wrb; Thu, 9 Mar 2023 12:22:00 -0800 (PST) X-Google-Smtp-Source: AK7set+cMBvgBa4jDXGggMEPvO6qckknLPSvvdDoH3OUHjzL37gBOwaPOTYOfEzMoQTW13U6NPJy X-Received: by 2002:a05:600c:4693:b0:3dc:4b87:a570 with SMTP id p19-20020a05600c469300b003dc4b87a570mr446793wmo.35.1678393320173; Thu, 09 Mar 2023 12:22:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678393320; cv=none; d=google.com; s=arc-20160816; b=I0dJGTdR9EhJZhN2O/Q+qwuomuHXCNsDFuDZOEumXd3qUKPhNeOV2+koKjpBK5wvP2 PEpc9sIQii6Hc4de4Rr1jZbVseF8UXyTKGnVUQjNBwJ8Cr/F7QJPVTMNdas2SIktgCY8 sf/QCsRsYxVkVIyEbSQPKIa/6XSYmjY3yNtJOdRri1XnOPTYhop5FgJCMdWIBM6TPCfT 01+QghPJlTOGJ70DBqw30R+AK4cNTpdekJ2tWe8+lAJbSJs2MRjR7u9Dm63DDBvsgE88 GdxYpDpKiPGtjJwm2JSM1Y34I73Z0IK6mt4a6aFiEKQa0lxl1xJDo5hFUZhTMLlV8WYx UFAw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=JraMLeaPMLQRcKl9Do+VNypjEWdAy8TVwPuBk6+dsXM=; b=cUMIIVuecNSGtdoYLpgoDNO17s3onYSloq1zfXmMzqTOiv9sN1v0nEl+REPzfwPGxi SssRziCic27AWLT2qRexRuULxChxZyYavXESXonhUaqtojaZd5ApcjYEkOyez4AzhLhP I5xyeoXWqfyjUcF7X6XYtdoOKnc5FOfbshrCCwIojVAThn0MMyaGT59KrkAYuHpX9FzB KANJf8xOiVOssHMQJr9pAftHmWqwQDDFVNzaWFD09kTlte2igvWPl2yCH2pxZokFmPmT XCQxPxSME9Zb2emB7mjJUBSpRacCXNh/tgdF2MSbg34VhgTygkMfsUZdIzHTU2J6apUS KK8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lovcS5X7; 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 t14-20020a05600c198e00b003eb0abba44bsi68441wmq.0.2023.03.09.12.22.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:22:00 -0800 (PST) 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=lovcS5X7; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paMgT-0006ew-BJ; Thu, 09 Mar 2023 15:16:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paMgM-0006Kp-3a for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:16:10 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMgK-0002ry-8y for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:16:09 -0500 Received: by mail-pl1-x632.google.com with SMTP id v11so3219434plz.8 for ; Thu, 09 Mar 2023 12:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392966; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JraMLeaPMLQRcKl9Do+VNypjEWdAy8TVwPuBk6+dsXM=; b=lovcS5X7skl1ZcPxi94EOocrXjRb9n8psRu94VZ7xeqiAvJx+otVXA8/Gk8uKt/i6M 7ZKGXT0sloCuZ6lGE92jWl8QiSHWyQ+YsQGPMeQQtO7deXxy/FJD5GqOCCH8kBggXuEk X6GxYJyAObqS+BNcybkhiAHRJi9coGdN+Q5dOHIZcgTxn2tn1hFZMSUf0peFTMEXEfvV SYVBk+vUAREhrPE/WFUFDtvTHPmQQjR+DpfAVH0DEnD5qgYKdPXe4KfxL/v0bZPIDc4w i4ROQKsw4YEFW+STyv5ZW6mTvvAG6lmzaPUibbxeLkoCMzvyqVbjBCc5574ihfPY61N0 Qb7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392966; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JraMLeaPMLQRcKl9Do+VNypjEWdAy8TVwPuBk6+dsXM=; b=SS8zRqCo87MwAH2cvXZyxoeeAoEs4GPOvUYRD/R3MffH/QDKLZ5ZwSK6A09EsxYnw0 wOE6hniM97KrikrsxiOXIT0YePj77cY0ANo6XtASpfSXlQSKo43GPswr0qe7ZGpD3iNX TzxWdoY0GwaLbJfyoGgRLoHHzl7Jdrh5m/09mO3JzlMQXHBuje4NfFCq0r3aB2rE/kmo ugdypOQ7x7HCpBhOKHEanW+1eAB0L7jx+9rD3y4IhCEA1LY0QOWIF5mj7xLaguELeU/7 3vPJjdMxohKbC902+dTrRhuhI0GSyx5Oxw6PmAqGkiB60YnDju8N11+2RPyGCIANbKwt cwkQ== X-Gm-Message-State: AO0yUKWh1YZQoWFyixfk5fNZve/Xofo1PYmcatdt4fhRVPLQP17prwNO TZexUs9O5RXH0hwASqEqYseB6h5SK+7kUn0Q31Y= X-Received: by 2002:a17:90b:3a92:b0:233:b5c2:7d17 with SMTP id om18-20020a17090b3a9200b00233b5c27d17mr23399319pjb.23.1678392965714; Thu, 09 Mar 2023 12:16:05 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id w4-20020a17090a1b8400b0023377b98c7csm304094pjc.38.2023.03.09.12.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:16:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v2 0/2] target/m68k: Reject immediate as destination Date: Thu, 9 Mar 2023 12:16:02 -0800 Message-Id: <20230309201604.3885359-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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 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-bounces+patch=linaro.org@nongnu.org The translate.c fix is extracted from a larger patch set. I then add a test case and fix cpu_loop to raise the proper signal. r~ Richard Henderson (2): target/m68k: Reject immediate as destination in gen_ea_mode linux-user/m68k: Handle EXCP_ADDRESS in cpu_loop linux-user/m68k/cpu_loop.c | 5 ++++- target/m68k/translate.c | 4 ++++ tests/tcg/m68k/excp-address.c | 32 ++++++++++++++++++++++++++++++++ tests/tcg/m68k/Makefile.target | 1 + 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/m68k/excp-address.c