Message ID | 20220607203306.657998-62-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 j6csp5539981max; Tue, 7 Jun 2022 14:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuF3y0upu5yr6Wmcl9SWsDQBeVrLl7uHnDcmqvn70+mpdggKc2BwJqBulrhRc7o0JDwmZ/ X-Received: by 2002:a05:622a:344:b0:304:eb0a:3901 with SMTP id r4-20020a05622a034400b00304eb0a3901mr11376804qtw.297.1654638549656; Tue, 07 Jun 2022 14:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654638549; cv=none; d=google.com; s=arc-20160816; b=hRHUk0Zxf4XX2zwiDwKMazWTdzUMsgH554tBynPK7jSna2ZEKpRk8DPuN29If3U72y b4fyFOyd9ZsS64Lweqr38OtE4mONc8TXqZpypUZGMIQV7in7GTBXX9s9w08ro5l0B1UE ZQhAdrpbtf/nn2OeE1n4ZJgqpY1QFvwV9rjut432FW4JzlnhWp3HDqbRrQl2eT6Pxblv Knq2ihSgiPnX/te54ypPpIlkaE4KIfBhGg2NqKTXunoA2INqOO8Rj75ZfYFpKwNesEO/ rH0AaPNADXgRGlOrN/u8DG4FDnTh+wLLXS1lCoi4GBnS6vUH/MeYdHIXbjJ7AErxvB5g +nrA== 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=FjmC/46ARakxFpcFGMLJHjfrHdRZ+a4Hi4clf4uxgwU=; b=LdDppcSUfDNmPU8EPpg5KVSbPgq9cjA6mFiNYveefJQt4FCnv49NP9h771H7ailRHY HzQL6aA1NlQjX3qYzjLDVArHWZG6RMTQaTxVWEurEBBE22oKbpceeR5ADXGrrim0KeZ/ 2wXfhBqxhCro2YD8ed6ivBtZRhRRuIGBJ9hHN4SwRv9EC/xsdOgtPNhO8BDJWAwgO8xM H824WdTEb6HHEcsxKsb5Ulvdwj1ZUDMH74X6kFSeo+bzMubaGt+3iWTTg1VStCPPvSdH 92rPjT4IKKQV7mCN1SjYjwm/Vi44g+0lDGXSaiyDB+jYdl8R4vTkwXB8esRtJc9bwlXv l4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZAjjgadE; 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 d13-20020a05622a05cd00b002f917a19c05si10114746qtb.341.2022.06.07.14.49.09 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 14:49:09 -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=ZAjjgadE; 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]:59710 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 1nyh4X-0001qi-7H for patch@linaro.org; Tue, 07 Jun 2022 17:49:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36272) 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 1nyfwu-0007Bm-HL for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:37:12 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:44683) 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 1nyfwn-0008LF-7Q for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:37:12 -0400 Received: by mail-pl1-x62d.google.com with SMTP id h1so15783545plf.11 for <qemu-devel@nongnu.org>; Tue, 07 Jun 2022 13:37:04 -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=FjmC/46ARakxFpcFGMLJHjfrHdRZ+a4Hi4clf4uxgwU=; b=ZAjjgadE2Bg7RCCjuuzOFXghuaZuR+KAvojV219qSd6n63WjYs4xH4LEiBjFWYO9pH 3Ue/N/ygU0PdOwhYoXQ5lE3uZD9zCPWbfDZ2rkbRO0xJmbzcRgzPgRekEhHjNGMLAFDd oZBrNsaFpX3oCRjDVl7Zw/rF3WUF6dnD3I6VEHD4itUHpu4NrlTm/QKNNKltBk4pJ61C z5DqwJ9kr1NcJ1sK1yt6WkMd+ofjYFuW8BlTwzCCgAOFFZBKNJtcd2kHsy+XT4zDqQv5 f0PQfkbrTdjuCe10SNL58DRJmyg2W+mjnZEze8Cfl624d84oOz0NmswrfDg/Nie7aNcY grIQ== 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=FjmC/46ARakxFpcFGMLJHjfrHdRZ+a4Hi4clf4uxgwU=; b=ywteUHb68rQQDX26kjIyuxmJPUP2147TeB4PG2qv54NHUZXLkN6sjm2+8FfWNBRYql isxdAXeFR5DNqotKFuvuADvJILcMa/Nn+2gEb7Putn8I4yJ0oWguwxL653c8j0lsCjQ4 kyb4s6a1fidbXVOaeqX5LoJezLAIPtJExxDL8gxqMzLVxL+e+2MeeuGnE0pGyLZw5aeC wzGvoHaAAfJC3dbASwNAydbV69Ql11+Aap4tq/A6SGQDXIsCHX9wTMfWJqvSR8ZfJZxP RZQXJ/tlArjz+lKx0Zz/IKTR/QpbNpCC0e0t4SeqD6Yd4yXFOhQAsTDIQ1q4VUpvm2DF lXEg== X-Gm-Message-State: AOAM531Qw8U4eWCZuNcOL4SkFiBKVeUKj/JTsuJD5yqVRG5Nks2IrkXd n2hwX5p4levsf4DAWC5vUFIc1XrYLWUttw== X-Received: by 2002:a17:902:7b8f:b0:162:467:db7c with SMTP id w15-20020a1709027b8f00b001620467db7cmr29671017pll.140.1654634224007; Tue, 07 Jun 2022 13:37:04 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:3cf2:c634:5b19:25f6]) by smtp.gmail.com with ESMTPSA id s18-20020aa78d52000000b0050dc76281fdsm13235645pfe.215.2022.06.07.13.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 13:37:03 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Subject: [PATCH v2 61/71] linux-user/aarch64: Add SM bit to SVE signal context Date: Tue, 7 Jun 2022 13:32:56 -0700 Message-Id: <20220607203306.657998-62-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607203306.657998-1-richard.henderson@linaro.org> References: <20220607203306.657998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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=unavailable 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/arm: Scalable Matrix Extension
|
expand
|
diff --git a/linux-user/aarch64/signal.c b/linux-user/aarch64/signal.c index 7da0e36c6d..3cef2f44cf 100644 --- a/linux-user/aarch64/signal.c +++ b/linux-user/aarch64/signal.c @@ -78,7 +78,8 @@ struct target_extra_context { struct target_sve_context { struct target_aarch64_ctx head; uint16_t vl; - uint16_t reserved[3]; + uint16_t flags; + uint16_t reserved[2]; /* The actual SVE data immediately follows. It is laid out * according to TARGET_SVE_SIG_{Z,P}REG_OFFSET, based off of * the original struct pointer. @@ -101,6 +102,8 @@ struct target_sve_context { #define TARGET_SVE_SIG_CONTEXT_SIZE(VQ) \ (TARGET_SVE_SIG_PREG_OFFSET(VQ, 17)) +#define TARGET_SVE_SIG_FLAG_SM 1 + struct target_rt_sigframe { struct target_siginfo info; struct target_ucontext uc; @@ -177,9 +180,13 @@ static void target_setup_sve_record(struct target_sve_context *sve, { int i, j; + memset(sve, 0, sizeof(*sve)); __put_user(TARGET_SVE_MAGIC, &sve->head.magic); __put_user(size, &sve->head.size); __put_user(vq * TARGET_SVE_VQ_BYTES, &sve->vl); + if (FIELD_EX64(env->svcr, SVCR, SM)) { + __put_user(TARGET_SVE_SIG_FLAG_SM, &sve->flags); + } /* Note that SVE regs are stored as a byte stream, with each byte element * at a subsequent address. This corresponds to a little-endian store
Make sure to zero the currently reserved fields. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/aarch64/signal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)