Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1rabn4-0004cB-Fb for mharc-qemu-trivial@gnu.org; Thu, 15 Feb 2024 08:28:38 -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 1rabn2-0004X7-Q8 for qemu-trivial@nongnu.org; Thu, 15 Feb 2024 08:28:36 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rabn1-0004nd-8F for qemu-trivial@nongnu.org; Thu, 15 Feb 2024 08:28:36 -0500 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5639c8cc449so1141382a12.2 for ; Thu, 15 Feb 2024 05:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708003713; x=1708608513; 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=xv9D61ihW9+zNcqu4fMkz7lbwoA5M0MKjWkLl/a3sH4=; b=b1dmyyyu+6CtctGkew9IBvvJvdKHPrnMpvQQCfsPmQJzyONl/gHXaJsR/OyVrKkQB9 sIgPOqk1tmtTUyRvU7NHdhEtJEHjJ/Ta+MtT+RpW35EFOLYoA3J12Cp0DpwnFUEb1u5/ BTJS88VhGvgOXxQHUtBberzF/fwFdkjUzZh4lRZq4eb8j1WMBblEx1Zr0WF90hzKRGMP 3Md0sVZvO6W7ogvnM6GYI3vHvo00fFnhRklon3sp1SeyTqk35onfnqjljQQ72oMS9lO/ QtdDazEM0quOB+5/VZesMHhbmKaPwyTpPa4hcR8WFO+H7zSUiLL4C65naopYxotCqTFo cgzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708003713; x=1708608513; 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=xv9D61ihW9+zNcqu4fMkz7lbwoA5M0MKjWkLl/a3sH4=; b=Xy+fd7FUCfykB9HugyPkbmcXSuss0ctiCLkIwnSGMmmSpTbHALD7F1UqGe344P+Ol3 v8Iu70ypFlgCFZZe5aD1csaT187IC1Ep9fuNi3lqxBrUajYm6d3dhQORLxTalSesfXqn 7d7LbUmFbvUqAP6LtVn8uSPdpIOKexxIzZJ6NRMoYYgyq0V8IBeeGmnK9Qs8cJnztphI hZU8YhpoVudZkGDJSUco1KacOlz/bCTHsDD9DDa+2D5GRJYZhNTnprVRHrPB+EFf0OI7 FtjTPb2RPxzFBNEe6uKfcfDKRi8ZL92FqflPJz/bwn66y+vLdd+53YSOvnPfurlgZtiW tupA== X-Forwarded-Encrypted: i=1; AJvYcCUuhLnEFykPWbgEQNpCzdFcUZlnNoZGhC6h7lflGopGY/xqjTCE/67Qjq2vIHn6oucc1qRxtcy1i73SpnFpAn8RNzsFEw6BCw== X-Gm-Message-State: AOJu0YxMpPmCVw5I112JhZ471txVGK8VKuRPClmZCPqyDCnVCqDBy1Ao +8zqBqDyeelQ74Y+m/kGiq4okUbkRGwjl6doMZl/cRft9098u5srp7vjcA0sXPw= X-Google-Smtp-Source: AGHT+IHRZG0uVLMUnAkSkwbNrAkhOBtL58gXaYgZEbJ2Qf+znEYKLmwo0vWWQnl/+hBxPY+BxyTXIA== X-Received: by 2002:aa7:d354:0:b0:560:463:8cd7 with SMTP id m20-20020aa7d354000000b0056004638cd7mr1368500edr.34.1708003713718; Thu, 15 Feb 2024 05:28:33 -0800 (PST) Received: from m1x-phil.lan ([176.187.193.50]) by smtp.gmail.com with ESMTPSA id ek5-20020a056402370500b00560c07f986asm538071edb.58.2024.02.15.05.28.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 15 Feb 2024 05:28:33 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Artyom Tarasenko , Manos Pitsidianakis , Mark Cave-Ayland , Michael Tokarev , Pierrick Bouvier , Frederic Konrad , =?UTF-8?q?Cl=C3=A9ment=20Chigot?= , qemu-trivial@nongnu.org, Fabien Chouteau , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] hw/sparc/leon3: Remove unused 'env' argument of write_bootloader() Date: Thu, 15 Feb 2024 14:28:23 +0100 Message-ID: <20240215132824.67363-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240215132824.67363-1-philmd@linaro.org> References: <20240215132824.67363-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=philmd@linaro.org; helo=mail-ed1-x533.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2024 13:28:37 -0000 'CPUSPARCState *env' argument is unused, remove it. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/leon3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 2dfb742566..d096fb04cb 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -94,8 +94,7 @@ static uint32_t *gen_store_u32(uint32_t *code, hwaddr addr, uint32_t val) * state (eg: initialized by the bootloader). This little code reproduces * this behavior. */ -static void write_bootloader(CPUSPARCState *env, uint8_t *base, - hwaddr kernel_addr) +static void write_bootloader(uint8_t *base, hwaddr kernel_addr) { uint32_t *p = (uint32_t *) base; @@ -342,7 +341,7 @@ static void leon3_generic_hw_init(MachineState *machine) uint8_t *bootloader_entry; bootloader_entry = memory_region_get_ram_ptr(prom); - write_bootloader(env, bootloader_entry, entry); + write_bootloader(bootloader_entry, entry); env->pc = LEON3_PROM_OFFSET; env->npc = LEON3_PROM_OFFSET + 4; reset_info->entry = LEON3_PROM_OFFSET; -- 2.41.0