Message ID | 20220602013401.303699-5-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp106952max; Wed, 1 Jun 2022 18:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyET6o6mrPU9CCql/GcbiwQE+8D/WAqx3TJZEb3VdTlgjIGfqQdALPKWZ/q4WoONBvaK3MN X-Received: by 2002:a05:620a:404b:b0:6a4:8244:1b62 with SMTP id i11-20020a05620a404b00b006a482441b62mr1741895qko.484.1654134117625; Wed, 01 Jun 2022 18:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654134117; cv=none; d=google.com; s=arc-20160816; b=fM8btkgfp3blYNbi5wxvV+Reixv1N++Ja+CotHYB2DvGMfMXxj6mYqfc9T+VhYJtrr 58VIbCQmKbuhQJdbdtlAnoifuCBf37m7Ap1taLuHo/vAmZiqBD0uqsmTm7yYWCs+mPH5 mAVkDV8lxkIcA3RqqVq7E/nCGbi1tltrQfcocgKko6VdjYXh1wusazDz6rUbZM0IrMtH Xpu+gAbUa60mrpMDSgqf/5058y8XOI5ssYi6asJFG3HdQxW8rWX46TsxHQswSvWT32qf jBw6Yrd5IySEebQoAj6WIo7vVYXShCKjyqnKgqYiHtJgHUzSmqhjF/sK7t9L1celkBVZ 52Eg== 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=J4zSKbRSZBikejwmF35G/K9fgc/QVqT0U8dLhuVX+Ha87EiklShxeUedcPrYnIZnSx ZDzfT+QQ4XnA1BeJxb3kP0qacQ8sOwmmtMgquQBfctU/DuRDfI7nek/T1Cdd/Z6olWQf xOqTFJY9c2HIHnemeERih1chJO3T+Bxg1XzDbXihGxCngXENugHxM+jhuxb2aELDBMT2 AvAAnMDaD+2kydCZhBSIacpQ2Q9A7QOOpGyVZMpCrMziWr8TPSC29e0TVLvWhOrRH+JT W20uwks2Xaxt5diZMQRgflD9egaAg6/GlQDsxS65RJ1WhmGylEmjmH5ygQw78qFBemEx QP0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hlsxl02a; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d5-20020a05622a15c500b00304d2576efesi185191qty.92.2022.06.01.18.41.57 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Jun 2022 18:41:57 -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=Hlsxl02a; 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]:60380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nwZqX-0001uq-86 for patch@linaro.org; Wed, 01 Jun 2022 21:41:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nwZj4-0002Ot-9f for qemu-devel@nongnu.org; Wed, 01 Jun 2022 21:34:14 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:40529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nwZiz-0005Ei-IC for qemu-devel@nongnu.org; Wed, 01 Jun 2022 21:34:12 -0400 Received: by mail-pl1-x629.google.com with SMTP id i1so3276876plg.7 for <qemu-devel@nongnu.org>; Wed, 01 Jun 2022 18:34:09 -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=Hlsxl02aExRZSOEMZ1YXVMIUwqpkQlJqLtVKC+eDhzgZlmpTslGd7yuZ5sxW7h+WCa 7sqbfycVWVJFKPKcf7HpNUYVrlBHZTZsVHZ6mrnj++XOGWmEWQm6pDFiXoq1Y+FbtWV4 M4P5IBEwJ7PrPCOSg1s65sq3oBXNX3NASZCMbA0fuBKf3OCFLxO4VKtcJloifoEuV0bx /ErqLhuoW5rdhJiY3LS3APfGXzKotGWUxoY+KaT4cxQmB1H8MEzDFOFOXYkjLtmq0hDB o/2lnOWckDmg/9Wuv3S1sN1JpyeBDfxUNidjm9+rJ9f7FnMhackoAooNJPqXJnOqYxnK Delw== 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=2OwISZjZgDmQvaGlU9/KgrGLlP5pZy0omSQL+JG1qUWSkbxaeqiJJ0QsQcn/HgHQAD +kKCMEV6ZtUj70KSS+rSKkgzp1SHUdIuzxBYm4w5/TPRl9XQrHUKybl9oYGVgH/cPDJL 0XM/s80PPi8NfdTJAmWovrh5pTI/lxfmeoOvWsqpI46T/pEmnjZXtFq4pXRzPNDUlG1r 8cCmRtuQyg0a+7PmPdE/7Y0t7IGAclT6ertQBq++pVSGj5eA+4JmxkzM61zA7qV4OHme PftmJv3by/iS7LrOqMxHXmGx0uXlRc7On0dqb5vP44T4JTUf3fwGjxf8jfzSV3Frr7Ay mNMg== X-Gm-Message-State: AOAM533raPI5MhRwMNxO4HX/5XDc2lHYbpfDiINB6vkDUmqiWXvFi+fp imH4SYEsZwj95XivYpVE0EWJFpLtl2yO8A== X-Received: by 2002:a17:90b:1d90:b0:1df:d0ae:1443 with SMTP id pf16-20020a17090b1d9000b001dfd0ae1443mr2418782pjb.122.1654133648114; Wed, 01 Jun 2022 18:34:08 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 18:34:07 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH v6 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15 Date: Wed, 1 Jun 2022 18:33:48 -0700 Message-Id: <20220602013401.303699-5-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/m68k: Conditional traps + trap cleanup
|
expand
|
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:
These are raised by guest instructions, and should not fall through into the default abort case. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/m68k/cpu_loop.c | 4 ++++ 1 file changed, 4 insertions(+)