From patchwork Sat Apr 30 17:53:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 568146 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp7369529map; Sat, 30 Apr 2022 10:55:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymksWK+dbygSZ68omtoJXn/OtT9c1PptzRnd9AvPLtI39tRRFxgKn6ie6+2oKdLVeFmnnI X-Received: by 2002:ac8:7c54:0:b0:2f3:6fd1:ff92 with SMTP id o20-20020ac87c54000000b002f36fd1ff92mr4316163qtv.312.1651341304555; Sat, 30 Apr 2022 10:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651341304; cv=none; d=google.com; s=arc-20160816; b=ukOs5yIywxEwmApoBqN16q7U0b0BOx3l+BNLN2eqYGRh7h8zHXommWDHeLXAgjvh3g etjePHA/NZU/UCxqjgxA7a8K/s5TA+Iy04+h0YatnMTbLmWI9OxOGxClvKfEsxeRMqy/ BHGHU6DuyOFwj69eL2O1whoKP4tZhI31bnqW3yrCu/yJ5I8yCICQwEm48qujHWrhKTrO 0i/XE1LY+wPYcVeDEHkdVK+PfETvPzLUai9rcU4Dt4W1EzH+K+efcRFWXnj2GK0qlpTO fK8/tTkNRY8Uom1wKcbOjNb2Pqta4W9fFgb8emgkog/WKmhZDDrjg0y+7z5dRY114yJb S2VA== 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=1b49PBr+T1730mSFSrp1OrknmNb0ysNKYnsC6xH7ni4=; b=RwwfwzH2YQtqpE9bAqQvN7ZWalM3ldgYg9hTjimTEN1nHHakkZIdTELjOpWop04PSY AU1pff9CNVv8cMithOUjNYdTrBFHmBq9TQgEYAlSyFusON02OVLco7unM7MeIFnxKBj8 jmzYWOz/QyjGqPrC0j7GGwOTt3CchQmos2boR8w6VZWtjZREos4NashXrQLVKTuHDr2H pdKUfzASQgZGkldWJywWYwCfvMeYD3Kra1W8bY6k3O4mU24jsyfhb7++Q/70bTU46yVL Ey+kaA1g3N4IghkYGui43MbA+TUa2Om8H0Gq5WdLRF3UpE18W39y75AZ3IZ6VogIf/ea Lp9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cojVkoZ/"; 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 z1-20020a05620a260100b0069fb67417d9si2104481qko.477.2022.04.30.10.55.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Apr 2022 10:55:04 -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="cojVkoZ/"; 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]:33602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkrJA-0004bC-5Z for patch@linaro.org; Sat, 30 Apr 2022 13:55:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkrHx-0004Xb-UP for qemu-devel@nongnu.org; Sat, 30 Apr 2022 13:53:49 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:46838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkrHw-00081D-5i for qemu-devel@nongnu.org; Sat, 30 Apr 2022 13:53:49 -0400 Received: by mail-pj1-x102b.google.com with SMTP id cq17-20020a17090af99100b001dc0386cd8fso4384580pjb.5 for ; Sat, 30 Apr 2022 10:53:47 -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=1b49PBr+T1730mSFSrp1OrknmNb0ysNKYnsC6xH7ni4=; b=cojVkoZ/G4KKCo3PbhnBDWjuxknpQclBP8uqcl04Q/gV8LgNzofrMGJPP3QSvfk42A w866+5oSGKhmR82gvqsmEJqwn9atPVmcam40JjcLxNH77RCOW8wmLyQAby2cmpmcjmYC SueQ0bzXuTs/+eVuZRd11PC6tmdmlnhpm8V3BzwQZHizN+CN85K/lYbaH1tKTuAg5pjV 2lS7yQD9nyLvRGE5OSYbPpfFtv9awVYTWbT+bpbles5j9dqVfQbqDLtdG/xfCpyeEVJ6 nm6uhHJ+r0lpGnuWQto0wT8OWoW/1JrEA/7D2sUUw91ErOykrWTPidy0LhCryNulIp26 NcBQ== 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=1b49PBr+T1730mSFSrp1OrknmNb0ysNKYnsC6xH7ni4=; b=4guE2By2GGqPZdZ2kpb8vlGpUurHl4JK/4RQa5lgSlJhfxRG0kRLFYiPk1rHQJYCBQ SmONsboyyPQQCByEI25LqmeSzUeQnFbywWQhT6SD+z1BYu9YRE5fRe1GNbCYj9+VG3Za KbojlmdrrVQ8zgHdl0ys0EM64SQjT3kg00KbBOXVL3JVIXU29yvsropF/HhkJFX3inAY UkQPqBps+zVgLgAVBAuKIkcz90LdggvYbyK2Xv/1iQ/77c4KFFrUz6KcdyaB7Dm+w/H9 2wlJuZ+X16B1kJO7SfYcwbj0fbU4WTywqAQKjPQp9x44E7AQJ6brmmuqpXbC6jJxjN0v ONMw== X-Gm-Message-State: AOAM532EfKMv3xR74M7Dgwfsv+001zkomNGdDbJ9zfHWbd0ZF12YPzop YkR62zlEtXBOWYPJy3+rhCjtkTBPyS7VAQ== X-Received: by 2002:a17:902:db0a:b0:15c:e8bf:f9d with SMTP id m10-20020a170902db0a00b0015ce8bf0f9dmr4731231plx.103.1651341226881; Sat, 30 Apr 2022 10:53:46 -0700 (PDT) Received: from stoup.. ([71.212.142.129]) by smtp.gmail.com with ESMTPSA id 5-20020a170902c20500b0015e8d4eb282sm1740910pll.204.2022.04.30.10.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Apr 2022 10:53:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15 Date: Sat, 30 Apr 2022 10:53:29 -0700 Message-Id: <20220430175342.370628-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220430175342.370628-1-richard.henderson@linaro.org> References: <20220430175342.370628-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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: , 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 56417f7401..6ca3e1e63a 100644 --- a/linux-user/m68k/cpu_loop.c +++ b/linux-user/m68k/cpu_loop.c @@ -44,6 +44,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: @@ -76,6 +77,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: