From patchwork Fri Dec 20 01:54:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 852339 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1814157wrq; Thu, 19 Dec 2024 17:59:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVm0GLdweA2F1GYdoV1GaEZFiVzXT/Kt8petnfBRz3Es1EKA1EVvFUesW/BwLQJc1DatiR3cA==@linaro.org X-Google-Smtp-Source: AGHT+IFoKyNNZhE7rYFmoliHLKk+4zzV+Dwc51s4yFDQSoqqv4B4tmRJ7hlxJaJPEzmsUwfKgcYo X-Received: by 2002:ac8:7dc6:0:b0:466:93e2:8ba5 with SMTP id d75a77b69052e-46a4a8add12mr18701181cf.5.1734659952104; Thu, 19 Dec 2024 17:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734659952; cv=none; d=google.com; s=arc-20240605; b=WRC24Vdzata542awURRBdIWur1nP34qspSGhzqyAfVrSV606rCCs5PCzlc5ZUz6iyl qs5WDmH4tvPX270YCPhNvDFsfLUco7FOtucZNl+G8aiQyAbr4d9HJQhJPUEhjaUW6whj j18YCuMHww1IniYeSYkf2xOaqHMD7ZQFIROBdafxD5D+lqYmDBzVMEUv1vFZbTPBlL4P af7+w+PU6ZGDYkwAURljWlbKnDMmyKiRTngWttA+pRBClHoZfhTjw8/HwrLJH4wTE5c3 GwdXEJINu94IHCf+SUTEKPR54+F43UKYko9cYTRK4acw8rAfsSif+BQla11whx1yVXkk qDMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=Hja11IV5nNA1bZBHCKOlY+QF4apsmUpXaGb/2G3nPWw=; fh=hOsOEs8aEq9LJJTsYsIoWx0jWixGs6ALmHBYDbZCZmk=; b=Pg76O/MN3joxYrIQSzrkG8pxuSnTup2FfTu0jqj6jegJoljp8GvuKgPGz9IKcgW4/G uwv8l9PuflEwftFZXrUrvTEaeQYSA5ym4g6gWX4M71ImXQFeDZ+d56Gr6XKZisdEIZNe 4xxjEyKkXpyMWSFYU8GbF7uArg9ztlw/qSwYWqtYaTSF/nz8zJDgX+uc0M4mEwoYOfdT PMNB7pPDJS18vpMG7/3s8aHj4ZACXviuJQFhTw/crv/0SyMgMyaCZ5vChCqTtXEcPYi8 KJaMPFGCoUClLWae3g2Z5hxQmvn9vJB6xbrI4c8I5g+MwOUVillW0F8GkSoJTPHg5+NI D5cw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ilZZK2Xf; 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=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dd182340e3si31003086d6.223.2024.12.19.17.59.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Dec 2024 17:59:12 -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=@gmail.com header.s=20230601 header.b=ilZZK2Xf; 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=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOSG8-00021s-UK; Thu, 19 Dec 2024 20:56:57 -0500 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 ) id 1tOSFv-0000xh-IW for qemu-devel@nongnu.org; Thu, 19 Dec 2024 20:56:43 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOSFu-0004e0-0I for qemu-devel@nongnu.org; Thu, 19 Dec 2024 20:56:43 -0500 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-725ed193c9eso1283904b3a.1 for ; Thu, 19 Dec 2024 17:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734659800; x=1735264600; 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=Hja11IV5nNA1bZBHCKOlY+QF4apsmUpXaGb/2G3nPWw=; b=ilZZK2XfjsEoYjAsCMnc3o+BeXVDFeKjO7xi45xxDuEZtRXGafMrLNR9oVXx1eeMf3 4/GRLQ6EQ/AActpFeqUUay0+pVFH7P37zv32sfxXOqWCtGC1de1qXlcrc/uKV6EmZ+bn bDIMDvia1bwr+KrtZi8q/WHe1urQCM5iZmXIbvMC6qvIRixA6GBej2PQlBiWClEkMuyN UY4gYBsTJm872iSKGN890/8Skn6yHjP2A5KoLLTy8tlWiTxj63/oLIJGfPwHQcoteZSg xTxw0sSQx9/kR7aBUVe7MhvLtKCstXUvVIMuAaJebCyYB5iYUTEQVYNNopJxQ/ujrF+L jtnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734659800; x=1735264600; 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=Hja11IV5nNA1bZBHCKOlY+QF4apsmUpXaGb/2G3nPWw=; b=LsyJrbzcFgFF8/XzpwC7ARjJODUCs37iF9X+wEIRKOcsNlS7bkEevibJjK6JeVJPhE Cxrp/d6grTrDjjlEjJc4dN4yjkHLOMI6Rtet2Lfj0M81QPWkyEKzHqYgaQCVSMBFJH8j hIhqtevdNA6HS31Gdhmp8PAX/c8o5t24B1aAjQ7nUSR/L5wURaww9qkFXhlVrZxwGNhw E+5NM0+yvv+tYzQMp79xnLN4vUxlX/p98LoKkbiZJooNuLK91QRAgtVzy7O3H0C4tvQO ZjkUoKGBc7iobjqMBysmP4aooiusG5dhqe40HlUzpv/J7QYighLk6LB7eIwrALE57UG4 vHCQ== X-Gm-Message-State: AOJu0YyAUiO6rnLqQ7KSmhkg/NhTNiJHoT7PKYH3Muj8qLCKt4VxB5dx tkDnt67FtMg5aIQr3P8NAvkPBo4kUctHagIkf/hNHV7ahjBH8JCllK+TA81K X-Gm-Gg: ASbGnctD5pmWN/T9Rg/bpeapJvNgyFD6F6HB2mWvkvr/a/OPD3evZY9gZtL1KEB8f0i K0secWlX97JtF8a7rq9ZI7MacfNw8mlFLfkqzSUxRbrLL4YIJAYRpgcoCWixniaMSSmWb7JX4pv edKEblILKsM3jOafw++ZxwA99/iytjkCfIp1+4vMT1edAKOtOjgbz2/hXHvhxyHtiBWeXxzQvxN fQR+ULRCVdUyjRZmFRABoZmpGasICFZXSCnALZV2RCFYJpPL3Ok3ZZ7mWi7XR4qs/tlOtLoavYS ZZ4OrSn7dg7x33ayWxk4rAU0d9wlSmA46GBYcFhrxM1Ux2wmo1uFpWXJULQ5Gu4= X-Received: by 2002:a05:6a21:394a:b0:1e0:df27:10d6 with SMTP id adf61e73a8af0-1e5e0497c5fmr2020057637.23.1734659800481; Thu, 19 Dec 2024 17:56:40 -0800 (PST) Received: from toolbox.alistair23.me (2403-580b-97e8-0-82ce-f179-8a79-69f4.ip6.aussiebb.net. [2403:580b:97e8:0:82ce:f179:8a79:69f4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8164d3sm2002539b3a.15.2024.12.19.17.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:56:40 -0800 (PST) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Alistair Francis , Daniel Henrique Barboza Subject: [PULL v2 35/39] target/riscv: Include missing headers in 'vector_internals.h' Date: Fri, 20 Dec 2024 11:54:35 +1000 Message-ID: <20241220015441.317236-36-alistair.francis@wdc.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241220015441.317236-1-alistair.francis@wdc.com> References: <20241220015441.317236-1-alistair.francis@wdc.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=alistair23@gmail.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé Rather than relying on implicit includes, explicit them, in order to avoid when refactoring unrelated headers: target/riscv/vector_internals.h:36:12: error: call to undeclared function 'FIELD_EX32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 36 | return FIELD_EX32(simd_data(desc), VDATA, NF); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Daniel Henrique Barboza Message-ID: <20241203200828.47311-2-philmd@linaro.org> Signed-off-by: Alistair Francis --- target/riscv/vector_internals.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/vector_internals.h b/target/riscv/vector_internals.h index 9e1e15b575..a11cc8366d 100644 --- a/target/riscv/vector_internals.h +++ b/target/riscv/vector_internals.h @@ -20,6 +20,7 @@ #define TARGET_RISCV_VECTOR_INTERNALS_H #include "qemu/bitops.h" +#include "hw/registerfields.h" #include "cpu.h" #include "tcg/tcg-gvec-desc.h" #include "internals.h"