From patchwork Fri May 27 16:47:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576512 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp807578mab; Fri, 27 May 2022 09:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTajgZCrKeeOcEDHh36dDdpxG3wxA4JaESlrELol9yAKV/x3jPsoEZax2n57Pat6dF5J5C X-Received: by 2002:ac8:5b50:0:b0:2f9:3e39:b75b with SMTP id n16-20020ac85b50000000b002f93e39b75bmr18456460qtw.60.1653670457436; Fri, 27 May 2022 09:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653670457; cv=none; d=google.com; s=arc-20160816; b=IFVlJRlo8ENtxUYv1L/gW79OCRKRbKruu0n5pY9bC7+HbtRanWUUCbOjByTMdZ1+lI imYrgCjvPdaYkp+yhrsY62ODT81VwENmZe1I2zhF3M3idTX9HyOe+81LqxhBxCBMaDnK p/xYE3eXNcoz9/u02H/TlHX/XUGJSnTiXz+dzu+glO0EJTddcpuUqT1dXot/wtaUGdB+ sm3IYTqSz+CCbKpcPy+u4k2la0yf0rmuT8nSz535mgwaVBAexxOOyoAwi51eYl2yDuOF BMTDcPThAE7qwvrr7CnyeuoZ01nQA61RWzexCueemBPxdfLcZAPnfsvPYsB5zOFbirvp t0XA== 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=P8QVHsssV/N9S00mQXjYBPgFpjBb96NXM+kaVdZ/lRE=; b=b9CwSNa5F70eZEY2EkJ+OMZkR5HmdAtwxi2/4zBSnZf/4I5zIeY8MNRQgm9uF+GnL7 DMwoeF4PCJ6ZsoQ06fiFs48BxwwURLu7M3kMoNHN2IuF7J+Vc2N4QNkJRwW/GNM4gjTF 6wGW82L/ZdMvDqwGxH249ELQbvc83gPsGWRR2nh9pVHfs32a7GxT0fqPtEW+wOy1nWL1 8/npUhQq/BOXP7iGbOw7YEqQmvfqsM4q14b26cR8BhAn1BSDjK8aKicT9b1DDclHrz6u SFpD2v5Qd8iJQhLK2vVn/s5+J+Kr0oXl/aBh1b6pkrNZB5+hFTYijBeU9e2a6xNxIu7b tqOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e+X6FO9n; 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 m14-20020a05620a290e00b006a50cdbf71dsi3667992qkp.32.2022.05.27.09.54.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 09:54:17 -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=e+X6FO9n; 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]:47858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nudE8-0007K3-WE for patch@linaro.org; Fri, 27 May 2022 12:54:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nud8J-0001JE-G2 for qemu-devel@nongnu.org; Fri, 27 May 2022 12:48:15 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:44564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nud8H-0005O7-RC for qemu-devel@nongnu.org; Fri, 27 May 2022 12:48:15 -0400 Received: by mail-pg1-x536.google.com with SMTP id v15so4356157pgk.11 for ; Fri, 27 May 2022 09:48:13 -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=P8QVHsssV/N9S00mQXjYBPgFpjBb96NXM+kaVdZ/lRE=; b=e+X6FO9nsM/ng4sW2GgTM449USgBSDm4fD5KpBwjTFcq8hwLN9cGSCXPV2t13uOIJB gmn+0mnpg2MMmLv3qO8eKJpqJp2WbkOV2YqTdg56xmb8HdhMMiF90fD0PknJoWbs+SmQ 2lAXySzh2nz6aLF5/88uSpoochFb0KQRGqagE+JSdy+NOACHGYfuEp32e+vE8+UXnSbL Coq5OmOghwMRvETwVWPZ3jQ3euyP6DNzdgRGCQNkDc5Fyu/JfUKjrVwcIq8ER4CnR9iE OJX6pNZx+oJDzS3jPn2R9byhb2pFuNk/81NCj9KUsoySngT8KQb/zSRwtu1GiuUr6dD5 qp/Q== 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=P8QVHsssV/N9S00mQXjYBPgFpjBb96NXM+kaVdZ/lRE=; b=7eCvQzgPiE+m+4+lRdgyr1dREdKCeVmdDkJY/YbQ7jQ5aV/NknXIiMSoj4z0hrX7gs RdEzRb7CvVgxrlc5gIWpizwRJxzxjOEhK94RpdBZBXGmD0DJLDbEfZGHHSxCBLjCP9mN 3YYBJ23pi5Tp0/JYg3p1OhBGP5lJf+EX5NHi6xAo8/oHc5DK/joIDvA2ZFoIyHAWYld4 7vUrVgK8oQGQbO1y/qwtKyxUc3+H+OCDPwBtLNhn43JwuZw48AGF3vWhavFAiu/766xT 4XMfcMWM/Jj8E8qRKOBAKvnch2CiBclwrphi73OxthHwSshTwULoJjNfxBkBdill9uK7 TEDg== X-Gm-Message-State: AOAM532DkHALw2jAw9jjb8FBGwP4BKavadtqgUSOACfPIwFnYq6RXvKy nSgk2KpPMHuEJEInRmmrgFqB3BuWpOAq+g== X-Received: by 2002:a05:6a00:22c3:b0:518:6a98:b06 with SMTP id f3-20020a056a0022c300b005186a980b06mr38627405pfj.3.1653670092519; Fri, 27 May 2022 09:48:12 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id j11-20020aa7928b000000b0050dc7628133sm3861420pfa.13.2022.05.27.09.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 09:48:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v5 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15 Date: Fri, 27 May 2022 09:47:54 -0700 Message-Id: <20220527164807.135038-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527164807.135038-1-richard.henderson@linaro.org> References: <20220527164807.135038-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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" These are raised by guest instructions, and should not fall through into the default abort case. Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier --- linux-user/m68k/cpu_loop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c index 56417f7401..12e5d9cd53 100644 --- a/linux-user/m68k/cpu_loop.c +++ b/linux-user/m68k/cpu_loop.c @@ -75,7 +75,11 @@ void cpu_loop(CPUM68KState *env) case EXCP_INTERRUPT: /* just indicate that signals should be handled asap */ break; + case EXCP_TRAP0 + 1 ... EXCP_TRAP0 + 14: + force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLTRP, env->pc); + break; case EXCP_DEBUG: + case EXCP_TRAP15: force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc); break; case EXCP_ATOMIC: