Message ID | 20240703174226.2117169-6-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | adc028428a6da5ea8d6a688085966a33be4c97c7 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp808005wru; Wed, 3 Jul 2024 10:44:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHI16zYgY0jmvKzyjbAdFJXukwlqrIiplEVgKXtr+0AT8T4G4GSBnbvNDWLnMJuWc1ysui09b1/v+2CzjAB1Rn X-Google-Smtp-Source: AGHT+IGJpOjLYsovbZ8lfuFD4vK5dA7Z2GE4gP+ncsd+/Ke6WPIRxwr4FJhhbF2T6QuIRAbVChza X-Received: by 2002:a05:6808:23cf:b0:3d2:2a0b:cf1b with SMTP id 5614622812f47-3d6b51b676cmr16610988b6e.37.1720028652354; Wed, 03 Jul 2024 10:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720028652; cv=none; d=google.com; s=arc-20160816; b=f85JhkfAFTt7VCSnEtcucny+SMuT63q5SKwxPmbh7Wvp4FsZCejKauRJWPPn6JgDu9 016ALEOnJ732rzJVEo49KKeJBam9ahlxpNYbTWTY98P8a4AP3YwAYXevZnEpkwBFL+r0 SLT4PjxD97ZlqSVZJbeG4IGwr1W6lqngwdDNoo5SivaPiXZmfQIsMBi1dYpSY1hhUJ2u 1mXX0VbilDtDJ73ZZVLJORobBBXXj6IiGwhM23alNL07bjWtpbbZJCK1XBLBtbQN11k0 0TV90db3T9TzDQUENQEcoqhUoUtioAM/uJNutS7CziauiWimSvsar4mOcsdR9RIdEcF2 fxwg== 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=+uNpnZst6srkdFxwP3aq1QH/I3J8LM6sXBaE+jLcP9o=; fh=iFknON4WFS7q+quXNYs5wbNyJoiC1WLBo0ACytPUsVA=; b=ciVb3APk+yCf1J/vOLEpFXSfyqxDL5mWS4YYAVHbPOHen+nUeeeoasu3b+euC2K1DB MCGKrndqdla8dlP2LFGJ7FOfO4StMTPrkuqbvgS4DfKBf6FkB4xCZQ6ZKfGQ3E5S8lMT dui3c4KwRD3tEUauCLioSkaiymJ6dJT4qKAQq2J+jUfgcKJKuNF9rql+1GjOiXiganqZ cYxxYQPkSaubTWfIQ4XSu+EuZRaqSO8V3Abn83GZzJIdAHtKxvRTlRaWxhAvReFacq0w CwLDnKPk4E0QTmfmK5jues1uBNz2xQTP7JcK42qBc2IYzEkY821RSlVc+HHAbJ1qgbin aJQg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cwLUQGwm; 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 6a1803df08f44-6b59e5acd58si130633576d6.231.2024.07.03.10.44.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jul 2024 10:44:12 -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=cwLUQGwm; 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 <qemu-devel-bounces@nongnu.org>) id 1sP40N-0003MG-Oi; Wed, 03 Jul 2024 13:42:55 -0400 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 <richard.henderson@linaro.org>) id 1sP40A-0003Iv-Hk for qemu-devel@nongnu.org; Wed, 03 Jul 2024 13:42:42 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) 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 1sP404-0005LX-UB for qemu-devel@nongnu.org; Wed, 03 Jul 2024 13:42:39 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1fa9ecfb321so36632635ad.0 for <qemu-devel@nongnu.org>; Wed, 03 Jul 2024 10:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720028553; x=1720633353; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+uNpnZst6srkdFxwP3aq1QH/I3J8LM6sXBaE+jLcP9o=; b=cwLUQGwmGsUr7KGTLaNztMTVoShhlxKFn64U/epIt/uOIyypKhmEUmPw4nrgLCKs35 kxN33gFswPT4XQWqhhop1dXMn9/hOOFyRdIb7Gl+YQ18lqF3ZxBpY5HvcS1ifFDTl6Ld YXDv07NkP3OncY3KfWIzESPoGVOiOLBSMfV7aZOqCrwi5dTEC2czYGPIQn+xwZUflh+O NJ9EWhA9Scw5LFW3ZSlA1kiosdvnA+u9BKoVItiXQ7Ea/TjVXjouLQVoSfXy3NXqgYd9 lh5U4uoER6LGB8IGcNdrOWEJT0Y4oODEJFntdNCOIeLLwNQKwbmwL8Ni5Reg5MzpdF2z iRyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720028553; x=1720633353; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+uNpnZst6srkdFxwP3aq1QH/I3J8LM6sXBaE+jLcP9o=; b=si6mn3kbXRQUvtIQkd79uBK7BEdZBPtQyAFXxka0CVNPs09mIwzEYImfTgqQLnRNZo 9nDEhDjnQ5wV3KDOnrQjurM/g3C2S0jGTR9L2vr1PHx+d8icaIBHxmBdQ5Z2m2rLBhlF aHBErxZTqIujv22w9K8SYSKrIYdHaQssjr04Nqb8Woz/dmQt85MFdOl3A/njKGWa/xXt nNOaPF5up9LOdJR8uKE36ZyeW1q5TL9wmd0VEy2ew/AaHaLmzgg+2omwEBT21Pvh1oaY Ump4BCGicA5o4+L1hknM9bocxcQqBb5OQplijixUAh10JKDPdmNW5T0Ln6JLk6l45pRK Nu2w== X-Gm-Message-State: AOJu0Yy8UYkJ0MyANYyHNjFWRINYuXn/wovsj6ilX/sxSb7RimkYrh8c vFi/U819RyqcejxWuAo12fSlm0M6DshGzmvppMGfRqJs9raer6VJkLgc6qyGwWBptx0ygg4ud7s q X-Received: by 2002:a17:90a:c7d7:b0:2c9:692e:7d6a with SMTP id 98e67ed59e1d1-2c9692e81e7mr3516785a91.20.1720028552797; Wed, 03 Jul 2024 10:42:32 -0700 (PDT) Received: from stoup.. (174-21-76-141.tukw.qwest.net. [174.21.76.141]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3e7d7bsm11070030a91.47.2024.07.03.10.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 10:42:32 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Brad Smith <brad@comstyle.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Alistair Francis <alistair.francis@wdc.com> Subject: [PULL 5/7] util/cpuinfo-riscv: Support OpenBSD signal frame Date: Wed, 3 Jul 2024 10:42:24 -0700 Message-Id: <20240703174226.2117169-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240703174226.2117169-1-richard.henderson@linaro.org> References: <20240703174226.2117169-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: <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-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,1/7] util/cpuinfo-ppc: Fix building on OpenBSD
|
expand
|
diff --git a/util/cpuinfo-riscv.c b/util/cpuinfo-riscv.c index 1236ee5fa4..7dcfbee2ab 100644 --- a/util/cpuinfo-riscv.c +++ b/util/cpuinfo-riscv.c @@ -13,7 +13,14 @@ static void sigill_handler(int signo, siginfo_t *si, void *data) { /* Skip the faulty instruction */ ucontext_t *uc = (ucontext_t *)data; + +#ifdef __linux__ uc->uc_mcontext.__gregs[REG_PC] += 4; +#elif defined(__OpenBSD__) + uc->sc_sepc += 4; +#else +# error Unsupported OS +#endif got_sigill = 1; }