From patchwork Tue Jul 23 20:38:38 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: 813978 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2489278wro; Tue, 23 Jul 2024 13:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUuasLdTPlGeA4Z7RcAgh22o9M5wsWDt+ERusVdlTDtm0vyZ3TvslVW1/wJYSOxk46SinQqtlsJe3fCOW1ODCZS X-Google-Smtp-Source: AGHT+IGoCdZsg51UUmOOKGSRhjLSMqAE2jEyk9Z93zAOilZbwuhUH1KpdxMLLnsLBqo7fh8q/J6J X-Received: by 2002:a05:6102:1525:b0:492:9e3a:9f48 with SMTP id ada2fe7eead31-493c190b2a8mr1286562137.2.1721767282550; Tue, 23 Jul 2024 13:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721767282; cv=none; d=google.com; s=arc-20160816; b=UhSif9cumOU5QKirYaCIQPodNqss9P4V7X5mdQ+D6O1pjvDndETZMNutyDOE4HTG+g db3Ah97y8PF9nYNQZ1YPHF8eUlzSqp89KrZ2ULQpHwxVNxUwEXKE0f8C9pt9lI2yt6PY 45rdb1lLfnelQbYiCertKCZwjNjmqWC/arXLks7l6XAHcLxScdfXT+aXNI2S8lbqXTcY fA0U0OjJAoDe5oAoVXf5QdnKvjsT7BPaAXtLYthxDv4D88vNbo84+wXOxJCDakaorcNs QwNUtpCAFTqR+ouuu1NgxkiIiTgx1LA+Xu0WHXleYN9DvroltYbO2ytUB0R55aDGLK57 OizA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=vEOkd3+zxom1XlmbkPPQvUDNjv9xP8TI/j35/QIU7mo=; fh=6kkQHg3LKqV7+iDll0gwTlEigYyWKHehcxsQcQJfzRQ=; b=VvZPyKTKTrfgfoKRML5A6e6Q3cBERiRmNFZ67nv8NI9pko73r1axPdAUdTv67p+QGD hRjm1vmMtMDUUFa28TWK0VOAReUTTn/Xqieo0GHKmnpYV9tdH8wUtj9LG03GE/W7L6IS VfLRFHk6hgViUteH5w5BYui3EpKBeL+oPcMtmp71Zk5pNhm2vKGZvmApOPPczcWs1o/7 abbqv2ka8N+7lses7iB0YDUXRrMSV4K+uHJ7XS+TszNCzO00ZjfEt3yw4zyTzO29P6aO wojM+WyPykQm4rUDtiQzNU6tZuBv5QqvLx8ys8itqilM2bAfbyOYn7t/4jsu/zPkWiYs Q2+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gnP0B4Ur; 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-7a1990b334dsi1187978685a.749.2024.07.23.13.41.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2024 13:41:22 -0700 (PDT) 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=gnP0B4Ur; 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 1sWMJ6-000856-Oe; Tue, 23 Jul 2024 16:40:25 -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 1sWMIo-0006fF-4Z for qemu-devel@nongnu.org; Tue, 23 Jul 2024 16:40:09 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWMIl-00041o-CQ for qemu-devel@nongnu.org; Tue, 23 Jul 2024 16:40:05 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-427edcc207cso10657395e9.3 for ; Tue, 23 Jul 2024 13:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721767200; x=1722372000; 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=vEOkd3+zxom1XlmbkPPQvUDNjv9xP8TI/j35/QIU7mo=; b=gnP0B4UrGUazyktAluHhqjQUScuI1L/OmURPCarBu/6UJWaWxRzxuxY9blIllaVcAP i8Db/T2cy6Ye1a+VE8VQTlv7lRfxI4KzTPf9xFKOsZAms8GJt3Thqmpxn5YqCevpmE0P kp63ywRojTRSBnl2krCNGmilDjaC46clZoAYmT7FHI8c8mcTxNQXyEah7WfyYAuUKRbn ACOaa4SZhBBNgN5JGyAGxX+/jhPjqZDKvsKkw/z4oqXi7pZthOowUAeyQlNmJpw/Ea2+ W+/Xfxs5GYJp7SAE7sl6DJ+gKnoOJjfwKiWs02AWljAbakTeWDkHtzGpfQcam3leElrq 5lsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721767200; x=1722372000; 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=vEOkd3+zxom1XlmbkPPQvUDNjv9xP8TI/j35/QIU7mo=; b=EII9ANAlmTz+ms6lPcVxf6WlqYwPzWUvoYdI9HGXDJa3aL+gVX1WNTI5x/VDA/c/Fu wvBA1JzQezjwkOW+y1AGz01+vDWSV//lYCV7VCGXW46UKN69ogfts4I2lcwl3GrBmY4c HgfTjEeP8rRvMluo5wxVJ6FJ85WONPwZQYw5YvgJYqQ5VoOIFaRgx5EKQRz7m+mVokiC AaPzbVBn3mBzh1FjMDUgKGQiMKPyelK0U1ijsyluwaueFDpELpoJUK42b55aR2K+vufv DfvyBPHcEt1ngOYt6ZyB9guqK1mQFFQ2riV5JVMGsq0GQAlrNIhwSVbySU9+56MNyJ3h Xuzg== X-Gm-Message-State: AOJu0YwAOfjzbNZr/KAHUERpPbahTZMpheA+n42pzsxB5cl1Qd5rqEQq gPH0L5MB7Z3gKi8iXerZq9XkQD42FHCNOQhryBH+W9xPZ4WQm3vJf34//hWwjhRuWOiAtn4mrea 2u+g= X-Received: by 2002:a05:600c:19cb:b0:426:622d:9e6b with SMTP id 5b1f17b1804b1-427f95b0f94mr12795e9.23.1721767200235; Tue, 23 Jul 2024 13:40:00 -0700 (PDT) Received: from localhost.localdomain (vbo91-h01-176-184-50-4.dsl.sta.abo.bbox.fr. [176.184.50.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427f9372e99sm532325e9.16.2024.07.23.13.39.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 23 Jul 2024 13:39:59 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Yao Xingtao , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PULL 11/28] hw/mips/loongson3_virt: remove useless type cast Date: Tue, 23 Jul 2024 22:38:38 +0200 Message-ID: <20240723203855.65033-12-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240723203855.65033-1-philmd@linaro.org> References: <20240723203855.65033-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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 From: Yao Xingtao The type of kernel_entry, kernel_low and kernel_high is uint64_t, cast the pointer of this type to uint64_t* is useless. Signed-off-by: Yao Xingtao Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240722091728.4334-2-yaoxt.fnst@fujitsu.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/mips/loongson3_virt.c b/hw/mips/loongson3_virt.c index 4ad36f0c5b6..408e3d7054c 100644 --- a/hw/mips/loongson3_virt.c +++ b/hw/mips/loongson3_virt.c @@ -355,8 +355,8 @@ static uint64_t load_kernel(CPUMIPSState *env) kernel_size = load_elf(loaderparams.kernel_filename, NULL, cpu_mips_kseg0_to_phys, NULL, - (uint64_t *)&kernel_entry, - (uint64_t *)&kernel_low, (uint64_t *)&kernel_high, + &kernel_entry, + &kernel_low, &kernel_high, NULL, 0, EM_MIPS, 1, 0); if (kernel_size < 0) { error_report("could not load kernel '%s': %s",