From patchwork Thu Dec 2 20:48:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519754 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp1165806imb; Thu, 2 Dec 2021 12:50:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxi1DU1yQWUIowyr9l+sdDnmwqzfgNBSh2aVfZbmSkxWy6jV7JquZ8z0a+2lLRigvZAw01C X-Received: by 2002:a25:6b46:: with SMTP id o6mr17961255ybm.19.1638478231610; Thu, 02 Dec 2021 12:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638478231; cv=none; d=google.com; s=arc-20160816; b=ZV1Jz/YuyyR81sEWMNJ4pOUXr7eHmpgW7LPT3hePS96K1+X3vGofsiAeufDI+VONWs NQoPYjBaygwRwn12vH3ltqx39QU3Y9A+GSWYDkm0Y7qfh2bSuujvGNFDyPg1SSQLvb5q 0ieRbMjUMZAscFfA7CuPoK21QGc6ORMnPuQ68qHzJWSSyR6XXKj3RMwzhW/1UmlFjCDh x3HRX20MRMDFpPDvVDWZmfjM2oYOj1BnqyFb9DjSNYUSxIRsLPUy3WArfZj4PDUwFG1h 7/KcomfjZyfK5h90Pgs6j7UbMV36vrUHoe3C+VB/tGcLmDKNDWB/KhHT+lXFvyRDsNqv hQtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=0fNsQKzzBZbMkBXxBO24tuTvZHmRZOZnsAlV3uXSDeo=; b=pl+1+5n03DB8ByaEJnqSFMdNAMYLcoQzMjzV6kPznjpzq28bjIzU3mORXMaEBQjivf HBN3vvOAoCuSJyEUXw/wGW15L9KHmblocU1NaEcDQe9xUcf6ytc9MRz2iLTylYSuq6jQ MAlcQMeLFuRiCySnVIUX3IlXh1OLZTqyuay1oMMBMJbLuuQy/nlFyJrAYKhsNTh+QiGd lpIyyh2rndBB53RKpF+v5Qf3frAxu33FR2z0zwkSxEyoyhbqjkzyY+hM1AKLy/0CsBA3 7e1LR6mSqLJ0cIR5ZBHXqGRXpMtFm1kpHpV/8GlkXNMxjT2IV9Yy83XTDMJNUDa1cm5o 78Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jBytbe8b; 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 205si957595ybb.666.2021.12.02.12.50.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Dec 2021 12:50:31 -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=jBytbe8b; 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]:34010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mst2F-00007m-2Y for patch@linaro.org; Thu, 02 Dec 2021 15:50:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mst0t-00005j-Ss for qemu-devel@nongnu.org; Thu, 02 Dec 2021 15:49:08 -0500 Received: from [2607:f8b0:4864:20::52d] (port=35377 helo=mail-pg1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mst0s-0005TG-1C for qemu-devel@nongnu.org; Thu, 02 Dec 2021 15:49:07 -0500 Received: by mail-pg1-x52d.google.com with SMTP id j11so944480pgs.2 for ; Thu, 02 Dec 2021 12:49:05 -0800 (PST) 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=0fNsQKzzBZbMkBXxBO24tuTvZHmRZOZnsAlV3uXSDeo=; b=jBytbe8bMMFoNaZXIYk3XfiE1gM/pyEGmB5lmgNrS6Uddr6MvZAe63s9QY1bfrFkWm d6cq0dNB0x4t2xFFo4ZjVAl8p3lyOyTSGgMrsBaF36ZwUn5kTEaXveKhNHXHVezhzf4L EHofr990PF6KQ0tJCxFJmh1tdLg5uRNjpzJmwHAC5Kzj9606wDoW2Mp1VOpcRzYpZLjc d0pxxtb6qpz1HwlLVFpKFIA1zH4OLD7mJcjLT7YeL53dmpm4Fe247nw698XHS7q3UOCw lASaIDVdvYeVslvNajAOFwcDxZsyrnSdS4Y5pLzqD2iKdGkkgrhc325zg827TZONdV2O aq4A== 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=0fNsQKzzBZbMkBXxBO24tuTvZHmRZOZnsAlV3uXSDeo=; b=ELMvTrNnVf4JF6SH0Aciv0iqahv+Ito/9v05xN1sn2DMw1CdmEcjYENU4NC4n8exDp uuT6lL0AE8Ts8Lt9DEGNnXr7MqkPEyzGDqlBPUEcXd5rJWWLBLW7SSZ2UwCvTp90z7Ap 0TtKMrlfUT0PwAq6YJRtpPNyoPWnGgWud/5R+b1l1uFkDoMp/2CIv6nr4oIEeE3v8r4T aov0jrw7qRFJxkLdT/KdFzGeajn91PaygPyR377vGNsZ7UaPX9K47jou7F//NcGJ6wgJ 00C4laYjRaFTv44D92/+3K5FnQE9sidAJyWa1JFN+BNE28sSsC/kVCTlMGN6oV5L5iF0 x2RQ== X-Gm-Message-State: AOAM5336Y2IVgwkUpMn9FemjfR66IyfosmhUpstuHyWNvT5aH8Ga7LE2 0l971Plo3Pzo0OsBOc4/55M+338efF3vpQ== X-Received: by 2002:a05:6a00:807:b0:49f:d6ab:590c with SMTP id m7-20020a056a00080700b0049fd6ab590cmr14979052pfk.32.1638478144559; Thu, 02 Dec 2021 12:49:04 -0800 (PST) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id pi17sm3721391pjb.34.2021.12.02.12.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 12:49:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 04/15] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15 Date: Thu, 2 Dec 2021 12:48:49 -0800 Message-Id: <20211202204900.50973-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211202204900.50973-1-richard.henderson@linaro.org> References: <20211202204900.50973-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: laurent@vivier.eu 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 --- linux-user/m68k/cpu_loop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c index 396f98bd6c..0de11fb9bf 100644 --- a/linux-user/m68k/cpu_loop.c +++ b/linux-user/m68k/cpu_loop.c @@ -45,6 +45,7 @@ void cpu_loop(CPUM68KState *env) case EXCP_ILLEGAL: case EXCP_LINEA: case EXCP_LINEF: + case EXCP_TRAP0 + 1 ... EXCP_TRAP0 + 14: force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPN, env->pc); break; case EXCP_CHK: @@ -77,6 +78,7 @@ void cpu_loop(CPUM68KState *env) /* just indicate that signals should be handled asap */ break; case EXCP_DEBUG: + case EXCP_TRAP15: force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc); break; case EXCP_ATOMIC: