From nobody Tue Feb 10 04:16:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.66 as permitted sender) client-ip=209.85.128.66; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f66.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.66 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1600946294; cv=none; d=zohomail.com; s=zohoarc; b=V+e5V3CESyS56suq4aWXytQtz6xe3RppmxjAg1sk49DfuarPH2tRcXyIWuZyMaiYFTeVa/N3BbJf2nOu4mpZbG/Ca/qSrC7QCQplnTxOUoSryEk9UAcR+abzSVcsoYgqG9fLOja8AJ+w5IwUsl0J3as0xRcqGKfLl95FGx3BnQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600946294; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=45JbwGiTU0XnEwI0yz801a4d2AUl+45skNEUNaweO3I=; b=gDJDVfFJNhxiHHPcuI4P8nSTs1aI+7XC1VV4Svpk1jdDEjILl9EgKWwdsIHq6imfwcFsLkjulw4RSD1Uoh622QAbaxIHP/WwTclU2J6TPv13Fn6fTAlhSwSiNNgBJIXdPX2YlGIf3756Bpg5FhUHTspa4ZVPEyDZLfG+GWcQ2nU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.66 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mx.zohomail.com with SMTPS id 1600946294828326.23961947985356; Thu, 24 Sep 2020 04:18:14 -0700 (PDT) Received: by mail-wm1-f66.google.com with SMTP id x23so3113122wmi.3 for ; Thu, 24 Sep 2020 04:18:14 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.234]) by smtp.gmail.com with ESMTPSA id h76sm3400363wme.10.2020.09.24.04.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 04:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=45JbwGiTU0XnEwI0yz801a4d2AUl+45skNEUNaweO3I=; b=OLEZuBzp7AbwKad6vBWF2idBQSBhdXp7gT6Lt2Sje6DczgkG1vxLwQx7r3zbZ8L7U7 fE7+GMYyiJav0vMae2lTwOx2GPuedPJv5OQqwQnn+pfMTRVXFWwv+lcdMc3l7zZLdrEU dNG4IW9BHG6psS0J4N24q5+d/BbLBxEgNAUN85uwsKF6SXVqU5PTItLc92Mjk0N5qJeD 7GY+xpSZwUIzwQaREczuJjQWQKbEAHq0RUoDK6018ryKRO8zSwAQTQu8TPwsrTFpDjFY hYUFm5n+kRI4rnVkk+aRlqas6NMTUBVYmGdh1c6PkZZiE5fmQ//UuRsCl6KVOknnkmbY xJGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=45JbwGiTU0XnEwI0yz801a4d2AUl+45skNEUNaweO3I=; b=JL3I3OGQpkjzJYfL4olvYQE7OdMIjD0beiO5x0LxZTR8B5Wf6fojzUZ6NrXad2hib0 S37SvcdGzTKoFTHGrzRA/q9yQO8aK/WWIa8PT6KnMGp6cZ8zAzpNZwzMRAV7wGI8TSm+ 7vjD4+DA9klZ8WQkww0l+zgyemEASVDTAhwMMKdk+srrMC76lwXY/g+5Ic/wccxnsSOd DDwGpqHaVPrqGz71gjfVMAnQEgWLcIuvDF9p/7YCNRkGfyAtlHx/fRupAvFTkN4GXUTt 9XuHuIhKQ3kUIMGXcBSmthWGNrIP7XcJEk0ds6lu8xgt2y8/E+AfV9EUzc/wVrW9mgay DCLw== X-Gm-Message-State: AOAM5338MbXO56pxShfX46IsCECePkoZf+mEpHPNGvsM1Gl+5Y6742Vg vUdI7UpBaVJcR9q27vcCm1KiNTSnUdo= X-Google-Smtp-Source: ABdhPJz/rf8WaiYg3QZluJPadk0tRdlgxon3S9BEVJRf2QlNKVH0l2OMy5n8LNdyu89o3tGUpxzV6w== X-Received: by 2002:a1c:65c1:: with SMTP id z184mr4037187wmb.61.1600946292926; Thu, 24 Sep 2020 04:18:12 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Andrew Baumann , Peter Maydell , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luc Michel Subject: [PATCH v4 2/8] hw/arm/raspi: Load the firmware on the first core Date: Thu, 24 Sep 2020 13:18:02 +0200 Message-Id: <20200924111808.77168-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200924111808.77168-1-f4bug@amsat.org> References: <20200924111808.77168-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) The 'first_cpu' is more a QEMU accelerator-related concept than a variable the machine requires to use. Since the machine is aware of its CPUs, directly use the first one to load the firmware. Reviewed-by: Luc Michel Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/raspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c index 46d9ed7f054..8716a80a75e 100644 --- a/hw/arm/raspi.c +++ b/hw/arm/raspi.c @@ -205,6 +205,7 @@ static void reset_secondary(ARMCPU *cpu, const struct a= rm_boot_info *info) =20 static void setup_boot(MachineState *machine, int version, size_t ram_size) { + RaspiMachineState *s =3D RASPI_MACHINE(machine); static struct arm_boot_info binfo; int r; =20 @@ -253,7 +254,7 @@ static void setup_boot(MachineState *machine, int versi= on, size_t ram_size) binfo.firmware_loaded =3D true; } =20 - arm_load_kernel(ARM_CPU(first_cpu), machine, &binfo); + arm_load_kernel(&s->soc.cpu[0].core, machine, &binfo); } =20 static void raspi_machine_init(MachineState *machine) --=20 2.26.2