From nobody Wed Apr 29 08:28:37 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1751627960; cv=none; d=zohomail.com; s=zohoarc; b=MplENeOWm2URL4c/LfcPM2vUN68fvCbj+3QCHndlmY4R7JagVtl42Hc8RsqjlzmWGOzz94HCcd2CyCoK4fBrQlgLyFjDU3dkzeXqyd7N7/kBXnfV0hgvsB9LgoBYnLzS43ujfOf2JQpyEEWFQrMjNQ4zpPcksdaodBZKhdEG0T4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751627960; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FNxj/pkRvngZiOvYp/rjInzIaNJOI6+DtF9M/sZjMSA=; b=aIPUQ2EiLpG4DM9eqcDx67j8rN14DWruqcyPEAfhSBvvwpg5zTvFqS9AWY232pSSo0anP3scTHMRXHKzJIlb3pRsymwRG/kImsoK9rKkgVI8tN5bfFrLxpSX/ad/yUhuvXEi/qhtKZ1C2Zkb43XKtt8jfIQ/x7twRFfMNOkiBbE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1751627960096487.69309413918256; Fri, 4 Jul 2025 04:19:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uXeN0-0004gZ-9G; Fri, 04 Jul 2025 07:14:18 -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 ) id 1uXeMQ-0002sm-7u for qemu-devel@nongnu.org; Fri, 04 Jul 2025 07:13:46 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uXeMK-0003jX-LS for qemu-devel@nongnu.org; Fri, 04 Jul 2025 07:13:39 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-23c8a505177so2113745ad.2 for ; Fri, 04 Jul 2025 04:13:34 -0700 (PDT) Received: from toolbx.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 d9443c01a7336-23c8431a206sm18002655ad.28.2025.07.04.04.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jul 2025 04:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751627613; x=1752232413; 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=FNxj/pkRvngZiOvYp/rjInzIaNJOI6+DtF9M/sZjMSA=; b=Eu5R1c6Ux3hhcOdvJ5KGug+AGj9xDLjv7298mSEKNeNgfqHKEW/e75sEvDPzSh8gmF krHlDhXyBoZc2tK/oErVt163vh6Rx1JfBjYzpA2OiZzOkt19eTYQ0lRvDfK8aVlAiOk5 hhPOTHw3iLOuX74KZtAlPGo12iHAJ9sFFrrUuWq+lZG6mvR7CocQjbAX2tP46b5L16Vw 6Hiac4s2wo8Ct9kYr6RWmVH6pGN9aoN38bp+RpWR6c7gCzxaNlLNXUzYXZpphYsbFHtg 7aknxX65iofjjr3RuKLHfA26U0gXqczHXtiLQVmZRYilDELxten/fTmhjwhQDG6y04aL B4gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751627613; x=1752232413; 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=FNxj/pkRvngZiOvYp/rjInzIaNJOI6+DtF9M/sZjMSA=; b=mR2SchVJgQMqNlHH6JXsvpnw2RPCjy0Orcq4uJ7+PoZ1X/hUpy6ie86eFE+wRB1eye 9tX9iLhElSyFlWiVuyH/oewC28Nu/yoyoufZ4C0QCMZYaIV5KWkwSs7/41BuFRW8w58o FviDXEvoIrIIAWpaHkwdOockAyBS1K+Nd0MyGOPH24bUkTeWf1sJ1N6a4v2DEj43noHa 1tYis5QtFLrLYuKHsFMNNMz+Ue/8C/Z5JIKl1UfpDtblHNd9lcSyxROIMa5sUON5rloS YKSdSCOSdPyFP9RnpO87ABEgVIcmu0ywqrzBauTgSZ5iWM1he2aGhfGQB9mjzLFbIkmf UEpw== X-Gm-Message-State: AOJu0YwPu293EMMmilPe8Xm2H97zuNhOJ0I0Y1ErLSLOLiJxvaIBVUkA VMUrAA95pnL7AjVVQ2KuJnzv8ObYDQytQno3yNU2ALPMzQtYxaiXgeua8biFZw== X-Gm-Gg: ASbGncvbxY1889zgkS5979kcqhCeMaxwCStIvtBinMDLVBSrcBodlPuW9W4fIbbbyMu NJsKwLBy150ulyq1zA14FXg+zyhZ5wZs9ktSt0ERYfViZYjP8dhcjgngPLDG38UVFCQRjgSnfsA bQJiNh4oiJsbyQo8HbTjnf4uy22bk/RuvSFfVtdS+nnIzLlXQfwNDRAfBxXK9xS7YCT9pa7hhRB 6DxeveNPJVxOEDxn6O1Fk/4e7bJPnjvmmNTSIsy13OuO5ZTe5c6li2JL84Qwx2PuRnZdXgjaa2e syxsjbMJPlo4H/2V1VyY1j3tNu1obqE3GGsbCdEGfDcl9OXhLjFnElKKe5B9V3+hJWm3rFvtiId W2DX7A13mOdEGDrOE7LF9/H9nMpejKrf7VfAgRDOW6S/ig703f2OpYXKAYD93H0YBNGY= X-Google-Smtp-Source: AGHT+IEaHt3khMZ3JOuAj2ibdnVkH08VfoBv6h6Sdt/VljpDq6JzKq4S7CwY9vTPnFQPiqa7AwZtKA== X-Received: by 2002:a17:903:13ce:b0:234:f6ba:e681 with SMTP id d9443c01a7336-23c8606b87emr37682875ad.5.1751627613031; Fri, 04 Jul 2025 04:13:33 -0700 (PDT) From: alistair23@gmail.com X-Google-Original-From: alistair.francis@wdc.com To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Joel Stanley , Daniel Henrique Barboza , Alistair Francis Subject: [PULL 21/40] hw/riscv/virt: Fix clint base address type Date: Fri, 4 Jul 2025 21:11:48 +1000 Message-ID: <20250704111207.591994-22-alistair.francis@wdc.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250704111207.591994-1-alistair.francis@wdc.com> References: <20250704111207.591994-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=alistair23@gmail.com; helo=mail-pl1-x62b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1751627961407116600 Content-Type: text/plain; charset="utf-8" From: Joel Stanley The address is a hardware address, so use hwaddr for consistency with the rest of the machine. Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis Signed-off-by: Joel Stanley Message-ID: <20250604025450.85327-2-joel@jms.id.au> Signed-off-by: Alistair Francis --- hw/riscv/virt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index cf280a92e5..875eb7155a 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -324,7 +324,7 @@ static void create_fdt_socket_clint(RISCVVirtState *s, int cpu; g_autofree char *clint_name =3D NULL; g_autofree uint32_t *clint_cells =3D NULL; - unsigned long clint_addr; + hwaddr clint_addr; MachineState *ms =3D MACHINE(s); static const char * const clint_compat[2] =3D { "sifive,clint0", "riscv,clint0" @@ -340,8 +340,8 @@ static void create_fdt_socket_clint(RISCVVirtState *s, } =20 clint_addr =3D s->memmap[VIRT_CLINT].base + - (s->memmap[VIRT_CLINT].size * socket); - clint_name =3D g_strdup_printf("/soc/clint@%lx", clint_addr); + s->memmap[VIRT_CLINT].size * socket; + clint_name =3D g_strdup_printf("/soc/clint@%"HWADDR_PRIx, clint_addr); qemu_fdt_add_subnode(ms->fdt, clint_name); qemu_fdt_setprop_string_array(ms->fdt, clint_name, "compatible", (char **)&clint_compat, --=20 2.50.0