From patchwork Tue Dec 3 20:08:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 846970 Delivered-To: patch@linaro.org Received: by 2002:a5d:44cd:0:b0:385:e875:8a9e with SMTP id z13csp701579wrr; Tue, 3 Dec 2024 12:09:25 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUHUh2Ki8Jd0KN5UI0liYwun4Qoak6x/i/FswY8MG+oIFi55Ro1y0k7vPfuC8GPppxG29xrDg==@linaro.org X-Google-Smtp-Source: AGHT+IE3zKo/AgN693E3dJjvOtFUiWoo+qpivnbaHIxUs5TBwaCtH7LXbvlkBL1JoDLrcz6OOcc2 X-Received: by 2002:a05:6122:3d10:b0:50a:cb38:31d5 with SMTP id 71dfb90a1353d-515bf589ef3mr4513040e0c.12.1733256565415; Tue, 03 Dec 2024 12:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733256565; cv=none; d=google.com; s=arc-20240605; b=cmeugVQARbv28N9gSA74G+7sy3w/3d5MLuKLBk3pNeJOtIeDwusk2WGtOeV9ggn60m AQyQ4o31RNlO8TaaQ1+1j3Pan+DOJIIOTKH3IZDbahRPNgFjFxPTOrjyH7s1yp9MbubA cNmNLAmnQZFYdlrofHqHAcUO8mIkREutfrM3WbZJWXPmSrf7QOVoY6wmiBSIyofZZFy+ KlwB7VKIlb83eAZ3xKqZxRUgnjn41+C8ubbq70Cuwlccbs3cuBL3wmxUjy17N0210HaS WjE1tDQB3yrbb5wUHNbqjQ7RACWxl2jy5XkfYlDNvontU8JuiEG8KNGOUTFK+dpyWLYM /4UQ== 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=nZMOVj7GbVXZJay7mP9/qfBnekqIsTqZXLgo5aqBELo=; fh=csheT1Ob/4Gh0mv8feIsZO/cjOI7db+0S4+KrQQ4jx8=; b=Lgn4NQSv/UPG/oOClcC9Ahie5BAxWp1muUUIL8hxSrQCE53BuX9LItxflbjjodhzks augBijRdrA4zR1OXN6/J3gprLTx4H0ZUPX7A8VnfUGskwpBqX/MWmw/827oxhlivJYHM O3xK9EJSB7hf+Icbin826eh0YUvIdU8bcQUTLhx8zKLv3fkk4hP6JpDYqSR2PN/018yz ijX65/W4CpNQ3ji5xnTmR53DZr7hNQz1vk6Mx8NLangURXq6sQ46o58l2UrZ1X73+164 DZAOTmqdyRYMmWztwJNRkvUNSSyeDELhKNZJz5au7JOupypdJjZ+I1U2+9lRcxBMOuNw TtPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DyESerzb; 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; 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 ada2fe7eead31-4af5936c253si5705085137.512.2024.12.03.12.09.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Dec 2024 12:09:25 -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=@linaro.org header.s=google header.b=DyESerzb; 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; 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 1tIZCN-0006Vg-PD; Tue, 03 Dec 2024 15:08:44 -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 1tIZCL-0006Sy-7Z for qemu-devel@nongnu.org; Tue, 03 Dec 2024 15:08:41 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIZCJ-0003GL-O2 for qemu-devel@nongnu.org; Tue, 03 Dec 2024 15:08:40 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-434a766b475so55214615e9.1 for ; Tue, 03 Dec 2024 12:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733256518; x=1733861318; 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=nZMOVj7GbVXZJay7mP9/qfBnekqIsTqZXLgo5aqBELo=; b=DyESerzb7x8mVGiHfYxsQAOMBm+A2MSlzA/6ngKEewJoMi0Xu8ch5Hl+XztJYzeOKd miDiZHsYd7E/kq7voaZSFBGinibqYzW1+0uvJvhWUNC/A9FcjbkSZsp+RdrvdFeiBqkI ctPc1cakX0xPPo7bTKyJM1vFa7w9kk7+CnLBg0Kv+jzf/OgDcPLH81CEhGSvGsL9bl+P fFkiWQVN/K/MYK3LZPRUOZG/1a56YnFcP0O9vKBJnMREHISJ8W7JwhnQ3n/SIHLH946i BDLD7x+xpO39CIbsPnOo4HIYTXYbKFiVWKKb6GoSLo6fOH3zBRHz6qBaZXH6ejCutK5e wOcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733256518; x=1733861318; 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=nZMOVj7GbVXZJay7mP9/qfBnekqIsTqZXLgo5aqBELo=; b=XRYCf+ZbeorVI9DqFB3bMmvyIHcpzBjrwiqasA1pKMiZAbpN1sLbZQk+1+UMDe7c43 TeFU0RwCBunR6MgfYeGG11hIVbI5imvK+sadjEM6RWahdTJ2x7rvZICPLaPJccOJJEZx Fy19fqLj/423aQxQO9X/ypECqBZbQEBoQ6pL+g7CpWHNLoeL6d9wiK0UZGCb/WoZ72SH 8obbq2FKnjskJmZWYoMd246wxh1Gs0IhCvzRgZnMB2Tb67sQPDcUIzjCuBG4S4tvUv+l 27N4FQdWqjnJ6JnZMLH7obQnXZof/cOsV+00jzNAvDhIWOJaktWVxgWwewJaNZxncAWi dr+w== X-Gm-Message-State: AOJu0YzXKPEM4q7Hc+wTfpIRxUIHFMum+tbxuNvVzItsPF2p1GnG6pU4 0hyT8GzKzy5FQV83P4munLwUnLGrJiNgmsbXhBEQcwiNS/UKJntqViDdDxsBR81zVYSdwlZ8gJ+ u X-Gm-Gg: ASbGncs4PrF9W4qWybIBp9+0oc5UYvDnYQbMx+L6+VpNxdqRlhr19Lepq2ujPJQG/za GciqfcQn70zUWT9nN2dYp+U1SomkZXa4PSMOLOCqydErXQjZWk8FLBZOi2bJ4AYqltLPcsWwXou S6eQsKaTwu16qux8MBqPVDrxeJKYsb6NFAK/Sg2ZLe1OWNAuJn8lXiixJk5nD14GnxoS9BPtpMm 4GPF7gpjSYT5RzOBKath9wmMrnPlDJiimWg6JMO9Ff+uHFDLU0UMhqwOW+tGGgUXbg5wnGxol/u Jw== X-Received: by 2002:a05:600c:4586:b0:434:a39b:5e44 with SMTP id 5b1f17b1804b1-434d09d01fbmr39423885e9.17.1733256517813; Tue, 03 Dec 2024 12:08:37 -0800 (PST) Received: from localhost.localdomain ([176.187.209.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385dea1e4ebsm14112074f8f.1.2024.12.03.12.08.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 03 Dec 2024 12:08:37 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Weiwei Li , Daniel Henrique Barboza , Palmer Dabbelt , Liu Zhiwei , Bin Meng , qemu-riscv@nongnu.org, Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] target/riscv: Include missing headers in 'vector_internals.h' Date: Tue, 3 Dec 2024 21:08:27 +0100 Message-ID: <20241203200828.47311-2-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203200828.47311-1-philmd@linaro.org> References: <20241203200828.47311-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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: 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 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: Daniel Henrique Barboza Reviewed-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 9e1e15b5750..a11cc8366dc 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" From patchwork Tue Dec 3 20:08:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 846971 Delivered-To: patch@linaro.org Received: by 2002:a5d:44cd:0:b0:385:e875:8a9e with SMTP id z13csp701613wrr; Tue, 3 Dec 2024 12:09:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUslURLejmELw6ISEudaZyv7VF+/OYgsBE1b1dmo1wddKqZyX64i/tWaWJMTh3ARKtWyTtsaw==@linaro.org X-Google-Smtp-Source: AGHT+IGMSGzeNe6EB1oaDSPbF71d7iB7XdTcuCkb/3hUWGMuAeZMZeQcmesoPbp4kaUcDXbAzMmJ X-Received: by 2002:a05:6102:1621:b0:4af:469b:d3b8 with SMTP id ada2fe7eead31-4af973ba18cmr5172448137.25.1733256568800; Tue, 03 Dec 2024 12:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733256568; cv=none; d=google.com; s=arc-20240605; b=aFRP1cZfwJdXFpwoSZn6+Y6KBQF+ea20lWEWsoSriiu5IT3SxRaFFPb5zUAQH/Pp/1 3SEwngUZGlu5vj/f9ZRtfmPbP6tauyPerub+WZnDQIZuFkXMv9YELR32VCfTP8hElQjJ IQtoC33bfYmrOgGhv6STW6PpriD83YO326OgFtvP1UWdZNMujd9TS7g2PmSkajyU7PTf 5Px5LK6cQL2078xFV0RZwO5QwGei2/JC3HH/4zNsyp4XRGFVjSQya4rRrbROpvG4blvI hLoHBHjsAh6/+ToztycASCs++kOhkZxQStJfWv6SstV2yL5bb/jldmrGLW4Ed2zMzBV3 Y9Pg== 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=1Z+oPOY9zkW5nSvF8Evg7C1/iJ6Xb0OH2wlMJp2C/qo=; fh=csheT1Ob/4Gh0mv8feIsZO/cjOI7db+0S4+KrQQ4jx8=; b=DjnO3MKTzbRWR0Po0rw12fRF/uFbPHIrFN+2kAhhOQJqn1zRA+Fy2K82lg7tvykGFv asAmV3yvSnTFGKkcL68Tt51pqRynw5fZG5OWPpVfoZlMjVtTq/LGpTuirCfA4GovCbCX 8TozKoSS7FKQS1aBQxKTmGmXUio6kGVblQo2QwB8iA5oricG3XIzxV1Jkreal9To3gqL 5/lDvYB/TU4Cxty+fKkvTyrx/N5NOGw1HJ2Nv73JZcwes5IOV4gj18jRBIiHSGFTVIg1 cfnkKYvSJSUZwOhfotYH5JWW2W+k1OJCy2cTsD00+E8/BYqY/X9ZR21bcb5mLgB6GcUS tC5g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YLV+bVm+; 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; 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 ada2fe7eead31-4af593d834dsi7096978137.673.2024.12.03.12.09.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Dec 2024 12:09:28 -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=@linaro.org header.s=google header.b=YLV+bVm+; 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; 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 1tIZCW-0006f8-3I; Tue, 03 Dec 2024 15:08:52 -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 1tIZCT-0006d2-CY for qemu-devel@nongnu.org; Tue, 03 Dec 2024 15:08:49 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIZCQ-0003HR-FS for qemu-devel@nongnu.org; Tue, 03 Dec 2024 15:08:47 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-385e2c52c21so2425554f8f.2 for ; Tue, 03 Dec 2024 12:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733256524; x=1733861324; 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=1Z+oPOY9zkW5nSvF8Evg7C1/iJ6Xb0OH2wlMJp2C/qo=; b=YLV+bVm+CDkPYgz/oNo/X5B1LzpiKtLPA1L1DECw989piUmWhVt3sxoqSMGyx2rFRM RhQweMZl2VCyh1o0bTzrPEsROQKHDwB7JV6RJ/I3TkYs+DPpUYfpyCxlRxbChhL6eQsg yg1AXBCzA4Btk5nVtrDLkBCaCKDx7hLsdc3phpuz+3pbFc8oOD1kCtIUjB85YArxadrf vMoaTljs0G0LFNBF45NaqSdxY+GXdxm84ZLNiasTtnUo14LubNyvoVSWzisgOQJ5uIPc 8knvXmivopHF8pMirJmF0OkV3cs4zhlLZFxp/CzBwYWr+O1kWCuK29w9TEs/MGJSVc4P mYQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733256524; x=1733861324; 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=1Z+oPOY9zkW5nSvF8Evg7C1/iJ6Xb0OH2wlMJp2C/qo=; b=BtiSN9z5+96sHaT3L+S7yOU2ukZSfIrdoF+iItmZygpV8D+c19sW7F+KfBA1wRMrB4 WSiSyGNGCvUJVL7E2iOv7M8W19alYCPinCD75w44++eWk9pwXIR5sL6J9KkL/Zo4j2W6 WONoN9bk/QhJVLMpQPpUXCp2Q51t38Ohr6GgQilrS0Jw6XD7y6nzY1a+iX0F8FCdyg4a SH2FL8Xt9plJ9vMBpKxzZQk/exQuGFfsnLkiWKgiXEqRMHaZfeQp20pgfIumFTFp1L3g h26Fu6MXnKrHb355JSPhz0zozg0jGhaK8+WMIHcPVlPPThi4FBGpW48Kw69UNx4dvIas YqkA== X-Gm-Message-State: AOJu0YxX/XVkiEQPZ6wYtcdOUjKDZIDun7k3CEqGmfQ+EewnNaL+tNAU Z8fGM1j/IuXvnZKHo38hT2L3WGg9MBktWXMsMiJ0EursiwGTkQU6iyTJSD7928T9mhPHtJPJ3K9 V X-Gm-Gg: ASbGncu25O710Q8NInoaDJt2Ew/KSt0Fswvpj79/LtVl3PbvwNvTNMNJGkIZGEIRX1j FklL6svF3XCMPKY79bK3TI2vnKPiqpPSKQBaEf428F6UbQQiPaEckl/2TuyQOaq07Khtmf4Dpg4 QlmlEIvsUIdoc9O315O90I4cRfFhr7HyDBlHZb9jHH1oIzLjljBc8ljCbyaQerbtr4nkpuGK8kK yZBz46KV4w2zK/ugGpVUDly2fRJJ6n7ATBFNRo0+o/08HeaiyIj0fQs3MqV7q6Ppqq9CvaIEN0T LQ== X-Received: by 2002:a05:6000:1a88:b0:385:e9ca:4e2a with SMTP id ffacd0b85a97d-385fd3f2168mr3266300f8f.4.1733256524368; Tue, 03 Dec 2024 12:08:44 -0800 (PST) Received: from localhost.localdomain ([176.187.209.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e3c21ba7sm10804489f8f.53.2024.12.03.12.08.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 03 Dec 2024 12:08:43 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Weiwei Li , Daniel Henrique Barboza , Palmer Dabbelt , Liu Zhiwei , Bin Meng , qemu-riscv@nongnu.org, Alistair Francis , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/2] target/riscv: Include missing headers in 'internals.h' Date: Tue, 3 Dec 2024 21:08:28 +0100 Message-ID: <20241203200828.47311-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203200828.47311-1-philmd@linaro.org> References: <20241203200828.47311-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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=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: 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 Rather than relying on implicit includes, explicit them, in order to avoid when refactoring unrelated headers: target/riscv/internals.h:49:15: error: use of undeclared identifier 'PRV_S' 49 | ret = PRV_S; | ^ target/riscv/internals.h:93:9: error: call to undeclared function 'env_archcpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (env_archcpu(env)->cfg.ext_zfinx) { | ^ target/riscv/internals.h:101:15: error: unknown type name 'float32'; did you mean 'float'? 101 | static inline float32 check_nanbox_s(CPURISCVState *env, uint64_t f) | ^~~~~~~ | float Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/internals.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/internals.h b/target/riscv/internals.h index ddbdee885bc..76934eaa7b5 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -19,7 +19,10 @@ #ifndef RISCV_CPU_INTERNALS_H #define RISCV_CPU_INTERNALS_H +#include "exec/cpu-common.h" #include "hw/registerfields.h" +#include "fpu/softfloat-types.h" +#include "target/riscv/cpu_bits.h" /* * The current MMU Modes are: