From patchwork Thu Feb 6 18:18:23 2025 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: 862524 Delivered-To: patch@linaro.org Received: by 2002:a5d:51d2:0:b0:385:e875:8a9e with SMTP id n18csp246864wrv; Thu, 6 Feb 2025 10:20:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVyOWBWI5v4nBeCHrMqGY11rSgMHoHZQo4kb68w0XyeeWN10Ef9+iNa6612oIG1/TVVBdOLIw==@linaro.org X-Google-Smtp-Source: AGHT+IETqaBr31NcOJ8smwRzHeN2j8PiOd5WJGBwnnrMJnRnws1HCFZJ0thUVqHcnc/fDBlUSpDo X-Received: by 2002:a05:620a:40ce:b0:7a8:554:c368 with SMTP id af79cd13be357-7c040219cfdmr635797585a.6.1738866010057; Thu, 06 Feb 2025 10:20:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738866010; cv=none; d=google.com; s=arc-20240605; b=CWXCyEJRL7YndfqkzTAXp4HQ9UrDdumUghLUWCrIiKbX1Fi+HcVjRQAbr0tAAzVOVw MDScvPk4e8KwAHSwNXAzEtEhKcKx6CROZkpxLSeUwF8PGPzXmKClzIOavmarSbK66Bcb sHDFrSK69sRzKPSMl5DJU0ABgwGAVnQ8Kvl+lpXKlaZ42iFSERfOsSl5rIL741+x7WaY UD33Fufa1aor+mbeHfEjwsTmWjsMTVrhHdCgk3WR3++AUYea1QvWt3Pyj51SUbo8SaXp 9WRnfC6I7f+vJIVMo+ELoPjV1wH/5OUvbM7TyQ7XkcJEveaRvMOSjUVFg0U6Y+zOOK3h iWew== 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=2kCJxV5RDHMsyayf2qMyOZN0P1Hh3IgBFGYV/iLdQ4w=; fh=UeiOjk+QPriWQC1kiCEXntK9CMGFOW0Fm2CbXDVlLTw=; b=a7J4YWRXZv1Z1dhpBZuiuBip+aTP1jsh5351Mk6LzMS6buiwmitG/AdCOCBjH6A6Cq A4L2NhEK1siUPu7rbTRmqtPgQm4zKifXBnah6Lcm3hdTk95DpJHkRhLf6pX7UnhIzK3d UHUllxqA0KvKLJxUZejQ7nwH+tadR3l7m04/ZvEI13Moj3vd+z4dzg4rkemAQqhuBICe neAvyNkQStYzeWoywsK22WJJegVdE/F8pUxCq/6+NS70kTBPCshLV9M6HPuYd34WHcrC G8Gegx1+3eD1FTx5QGI88bOR7xHnrC22RZRTD0b7A8o+n6SfaLK4flXZt5q38pH5L0rW soQQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qrVaVPGT; 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 af79cd13be357-7c041e0a1fbsi157595785a.181.2025.02.06.10.20.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Feb 2025 10:20:10 -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=qrVaVPGT; 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 1tg6Sh-0007eX-31; Thu, 06 Feb 2025 13:18:51 -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 1tg6Sf-0007db-J1 for qemu-devel@nongnu.org; Thu, 06 Feb 2025 13:18:49 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tg6Se-0006p1-2o for qemu-devel@nongnu.org; Thu, 06 Feb 2025 13:18:49 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso8308605e9.3 for ; Thu, 06 Feb 2025 10:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738865924; x=1739470724; 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=2kCJxV5RDHMsyayf2qMyOZN0P1Hh3IgBFGYV/iLdQ4w=; b=qrVaVPGTiBatrfOs3RzGVhrsxxeYUmTb5snj4K2NSCZA79yD6nl+dIu2te04L6qQ8p CNx3vTRIYd8RMohYP+YcdCbhBaMVEqHmc6n75SUoG4osTkpwVgmcef4BKYAOH+sbMhYd WbybmQFtg9/b0AP5ynxMS+7Uwx2ZyRUYcxf+/nzJiwl0Rkys2Z38yIivFOgGt0M7NLL4 LUOKQMiP0nzINDYze7xni4GGk2vYHGzXNWSpmV9+MMNYsRy+IAzQAOCBr1BO7L24OBdH vtSyaKMkoEqiAusem/DuSTIBPu4aLysxHA0DxF9cGuzWLSJUE6mD7D86rbMmZdhp9p7j U+9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738865924; x=1739470724; 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=2kCJxV5RDHMsyayf2qMyOZN0P1Hh3IgBFGYV/iLdQ4w=; b=C+QZtSN2MNZDfzyEG7RMQKPU5d7KwiL4uLikNF1ll9vUrsAgc+FH1HcOBCy3ABEkhu tyy6Su7wMIquemG2UXCxYaq5cUCi4OTV6N7QT5cHJhVFGqE+Bn+YTONlGtMgv6d2+BIK PEQRQL8kZZ89AqUP7/9BPADHAptKWlexRnjCuQW2kATp+BIP8IG5Pp5/vDHiL3LqdvU4 +ETJtFcTOQRTapVB3RDWwE9eVD7yTpKO7tnraCu5NO3tgJ5q7lrp1Qd5J5K6uT1fFSnt Q07WcvOBWod4WVwTYUALlltTn+Hyc37sWNEXqUYGpzsu0o2EGJpoC3uvBVjq0p1bB6l/ Ki1A== X-Gm-Message-State: AOJu0YyjeTcb+iU+/lbh7JFifEkmJ96jjECRZ5iPTExIaW8eL1Su3yFo quisztMfVUqSluhH+X49zSIwXjCTww64MNL/wagOPMja7Y2hLkVqXG3yEx8ZPL78sVii0xVT94m 2Pgo= X-Gm-Gg: ASbGnct+5/fTJIhemKURUDuZpmc3El/AahtpSwPOP4ACofgHV4mDgJvfYKshPs1XxhA 37vuJbkym330C514/NqdN3UBSeMU+c81CDGQVucBKIhH2uoDJzAEHEi1vbsXfQGH/22Uq53w4qa rY0chcxrLElyAzuXpSeHB6hafCxINgGbHrxI03Wkhws4wZKAmN6CzuLu3zYmyCqUw4wLhG3jQXX qP3LSuPdU+msS0EWnMAOqWLaND5upXpRZCBhK+iqGj9wVFIWN+HVbSkQ4yEpxFm7aZ8Mo6LxDDx X1/J+akzRB3m4YX39YWJJznfZU74TUO4gINFBrCp+lntGksaDjwLtBbk0/a4LW7oTQ== X-Received: by 2002:a05:600c:3d0f:b0:434:a10f:c3 with SMTP id 5b1f17b1804b1-43924984042mr3871135e9.9.1738865924567; Thu, 06 Feb 2025 10:18:44 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4391dc9ffcdsm26115595e9.15.2025.02.06.10.18.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Feb 2025 10:18:44 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , qemu-riscv@nongnu.org, Alistair Francis , Daniel Henrique Barboza , Bin Meng , Weiwei Li , Sunil V L , Liu Zhiwei , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 3/7] hw/riscv/opentitan: Include missing 'exec/address-spaces.h' header Date: Thu, 6 Feb 2025 19:18:23 +0100 Message-ID: <20250206181827.41557-4-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250206181827.41557-1-philmd@linaro.org> References: <20250206181827.41557-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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 opentitan_machine_init() calls get_system_memory(), which is declared in "exec/address-spaces.h". Include it in order to avoid when refactoring unrelated headers: hw/riscv/opentitan.c:83:29: error: call to undeclared function 'get_system_memory' 83 | MemoryRegion *sys_mem = get_system_memory(); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- hw/riscv/opentitan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index b9e56235d87..98a67fe52a8 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -28,6 +28,7 @@ #include "hw/riscv/boot.h" #include "qemu/units.h" #include "system/system.h" +#include "exec/address-spaces.h" /* * This version of the OpenTitan machine currently supports