From patchwork Mon Jan 13 19:55:12 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: 856956 Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp1601627wrc; Mon, 13 Jan 2025 11:58:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVFTRSTY0gs63zX8JZSL/zUTyL/nPJNNCIg5pjyIrMcDUU7e6eXCT3xd3pOyuoAeTB1vJCPOg==@linaro.org X-Google-Smtp-Source: AGHT+IFwE4q5iiTxOitTAQEeOyu+jRmRV+Rzf1kYEhuVvYwSn1U7BymbtbMSn9/hjNd1pLxlMG99 X-Received: by 2002:a05:622a:198a:b0:467:68a2:cb55 with SMTP id d75a77b69052e-46c710a93eemr338963021cf.28.1736798323414; Mon, 13 Jan 2025 11:58:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736798323; cv=none; d=google.com; s=arc-20240605; b=STRqIOyJwCqU6I+hHQZ4ckDWvCiev12XVkiAT/qNEW7LoMT3iL6PjU/g3Mc59DmK8V zC3dugjn5bKYnSpiCqsmjjDb6ml4HMSKpDM9jwXUoUZue6FcyzoX0xvHvP/59ArqufKF hITbCFwu09Dzx0zH4/W5ocwebtBK8hDyYUKk6PVSOuZVnnGLqqjE4UINmOTxwdu84pqs vJY+6G83WXQGi+lS0ntlypbwXWIDkp0HVJrDRH8k5X69s7hbuS/jV5C7LHFxmTIkF8dn uOPl5HrQyyrnNgNJwM+FKfY6zV/+JoUOKqkeI3E8CIyq+nEl4LwJa0tPTNm+R/+OBsUw +UVw== 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=raovzkxW4bgEPUiYxpxT8OAVJQxeHZnj+ixMLAGuiZ0=; fh=wMwPlu6s3WDa+luMUca6ONpSmNJKUwF5E3uCFeq1PI4=; b=VWARbqIc5H8lb6znKMmvG0Q3KOFskoLpeWe9ClWTH5K6Pd01CKmP3RwH/Qom+EZ2Px kRtJw7xqEDXYZcr81ZnVFyiyEVtWTMmzsb1kRX/H/+WwWUtnc2c/SqbKgHBlyqqQV8u2 bQoPkykXtuLF2MuUIjkawIBfZ0LmnWCw3tXZLeC528hMhBZ8NcpQGDgRqG9BaQW/morL loamMDQXv6xqod2HIIKeRs1SBsVsGRObh8FnBsYvZurDLUKtwdeT4+PJKKAMd179dUTe C3BxkV3twzegvRs+J9WThcrWva2FDnBhWgIUX3LzM5F5an9n9ydPw+pCq92wCM5Nr9lN Eo/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cf4XBmsu; 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 6a1803df08f44-6dfade996dcsi97758146d6.182.2025.01.13.11.58.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Jan 2025 11:58:43 -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=cf4XBmsu; 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 1tXQXc-000632-1n; Mon, 13 Jan 2025 14:56:04 -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 1tXQXa-00062p-FC for qemu-devel@nongnu.org; Mon, 13 Jan 2025 14:56:02 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tXQXY-0007Sd-Q1 for qemu-devel@nongnu.org; Mon, 13 Jan 2025 14:56:02 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3863494591bso2543427f8f.1 for ; Mon, 13 Jan 2025 11:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736798158; x=1737402958; 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=raovzkxW4bgEPUiYxpxT8OAVJQxeHZnj+ixMLAGuiZ0=; b=cf4XBmsubKUQ3UYlbzf63VP9zfjIGboB5r/ugA/nHA/r17RKBwsPBaVNc/iqLJLL34 9QOZNyMoxEa1rSRmSHfLcXT8yRPBbR6mQEftS7r7DpToJZ7j8fVe37kOPtdAjBswZO6H vbNM5+EBZroVnE1+LTqKt++g0fTdvgxBEjfGCJyrTnzbZzHpOJJO+cRT9pV3muDfodUx iBunZCB+4jjkaAWYVJydmwW4MryM47JocIxyWUiSgRZmbJUSZRbWCNiZSXVcWQPObql5 o1WMdPz51oTwUYAXWbBiJ1CWog3sw5nIhGh1ggVzeCOzgJ/7JD3W4ZdZ/1PfnTuiuL9g tDwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736798158; x=1737402958; 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=raovzkxW4bgEPUiYxpxT8OAVJQxeHZnj+ixMLAGuiZ0=; b=eMjW8vc8+JdMkNll2Kh4jrYYwOtpycuq4kQOCpwGd1sC9eEqNypz4t6YyetCD5BvSq esW2N1DWBpT7jPLJmgje0ibA93Fce7WyQdTSIFxj9h34K8S2vgvv2giaBIG7raAlDLPM uWnSno5zJD9oQO+t+1P7yDg/nsT+cBuxlMzI5EsFhL4HEo+tsocDV1CQUUbrej+3MVc+ y0NTcMDxAN5SvMHzknZYKjWmUjnE2/wXVvRZaavWm6b+5f1anmjNp+QKUwd8Q6eAF2Wl LmnFo/k/JpJQJ5aM0h4ZI7rLpPN7AJuhYRdJjp8oTs1+cBAARae1zyysyd0FTPtr2Hul xYNw== X-Gm-Message-State: AOJu0YxytRm8nVslU4PFPjm/WsSGIeEr/9DSoR4cvoHu/qAK5rTHQcox Ye35MB0m3nFRI1u4sbQ39WIiPEql9rJPLgwDQq/tKtyoLUuma9k2zM4UESot5OkHeRe4/HyrAdm cLl4= X-Gm-Gg: ASbGncvW8zoYpP6tv9P5RpW9/V60PrYaP2bLrcbVqYHYYkfY5Vwgu3hRac/mz1elx6X 9AVNWqzqLVM9qZDa7ISVdnUnl3/YSw6h5D2ozecWUqpKMmm+P/+Fxz5jjSbs6+CNkKQ671C9QBh fLSGKD4DWl1OhiaQLwYhY4LN9rPV28STADHBdovlEMtGOUA6kQU7FN5vmzhKnIiQCtsx2W6ygg1 c2CtT/WHZekG4poOU2iPuXHfW8gDZwiuxXratdCCtzD8Gfzn2J83RMv/yyvfcGy7XkUvoV/FW3W dPWoqFT6kxgtnMrLSLY1S/MyL5zmHZA= X-Received: by 2002:a05:6000:1542:b0:38b:da6a:8a02 with SMTP id ffacd0b85a97d-38bda6a8e9amr6088466f8f.47.1736798158534; Mon, 13 Jan 2025 11:55:58 -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-436e2e8a326sm188258975e9.35.2025.01.13.11.55.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 13 Jan 2025 11:55:57 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paul Burton , Aurelien Jarno , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Jiaxun Yang , Aleksandar Rikalo , Huacai Chen Subject: [PATCH v2 06/19] hw/mips/boston: Replace bl_gen_write_ulong() -> bl_gen_write_u64() Date: Mon, 13 Jan 2025 20:55:12 +0100 Message-ID: <20250113195525.57150-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250113195525.57150-1-philmd@linaro.org> References: <20250113195525.57150-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 "exec/hwaddr.h" defines: typedef uint64_t hwaddr; typedef struct MemMapEntry { hwaddr base; hwaddr size; } MemMapEntry; Since MemMapEntry::base is always of type uint64_t, we can directly use bl_gen_write_u64(). Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/boston.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/mips/boston.c b/hw/mips/boston.c index 67044af962a..63dc654192a 100644 --- a/hw/mips/boston.c +++ b/hw/mips/boston.c @@ -329,20 +329,20 @@ static void gen_firmware(void *p, hwaddr kernel_entry, hwaddr fdt_addr) /* Move CM GCRs */ regaddr = cpu_mips_phys_to_kseg1(NULL, GCR_BASE_ADDR + GCR_BASE_OFS), - bl_gen_write_ulong(&p, regaddr, - boston_memmap[BOSTON_CM].base); + bl_gen_write_u64(&p, regaddr, + boston_memmap[BOSTON_CM].base); /* Move & enable GIC GCRs */ regaddr = cpu_mips_phys_to_kseg1(NULL, boston_memmap[BOSTON_CM].base + GCR_GIC_BASE_OFS), - bl_gen_write_ulong(&p, regaddr, - boston_memmap[BOSTON_GIC].base | GCR_GIC_BASE_GICEN_MSK); + bl_gen_write_u64(&p, regaddr, + boston_memmap[BOSTON_GIC].base | GCR_GIC_BASE_GICEN_MSK); /* Move & enable CPC GCRs */ regaddr = cpu_mips_phys_to_kseg1(NULL, boston_memmap[BOSTON_CM].base + GCR_CPC_BASE_OFS), - bl_gen_write_ulong(&p, regaddr, - boston_memmap[BOSTON_CPC].base | GCR_CPC_BASE_CPCEN_MSK); + bl_gen_write_u64(&p, regaddr, + boston_memmap[BOSTON_CPC].base | GCR_CPC_BASE_CPCEN_MSK); /* * Setup argument registers to follow the UHI boot protocol: