From nobody Wed Nov 12 16:28:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1571529372; cv=none; d=zoho.com; s=zohoarc; b=LBcVy6boWLVjbjlIq1i/xkfj/Ys9xuKWNh6H5FlJbxxkaH/Aak6kvue1mf1Xw4by98ilJPXkafPKuzXpyPWABd2FJLEWY6XKO4bavsHnIH9a01d72ngXR3JtYze/yPApkyX1P9I/sDqw4nkLuNu1SB3lO8xQhobtFUB9mwmptWg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571529372; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bG9RMPIGC9ljNya02ZnuD6xFZnx6LHmfx6JD2fgLckE=; b=Fv6lXL6KMe0KuZ7OWUi4oZ51nWt5VSKdNDqhyklkMaSraY1aaysM7vEwxZgyP3Exui/4s3tUs6B+cNTvv70jpLJgQJIKchCZwm2hXXduRtBAZoR8VAG1tt1W+5JWiM+k7eqJMPf2TkIUKdNN3qRPXO38tlwbeo2QTVHWGx1tEUs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1571529372942476.858601763862; Sat, 19 Oct 2019 16:56:12 -0700 (PDT) Received: from localhost ([::1]:42210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLyZv-0003In-Da for importer@patchew.org; Sat, 19 Oct 2019 19:56:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34717) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLyRk-0000Y1-KM for qemu-devel@nongnu.org; Sat, 19 Oct 2019 19:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLyRj-0005h4-Gp for qemu-devel@nongnu.org; Sat, 19 Oct 2019 19:47:44 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:56112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLyRj-0005gV-Ar; Sat, 19 Oct 2019 19:47:43 -0400 Received: by mail-wm1-x344.google.com with SMTP id g24so376050wmh.5; Sat, 19 Oct 2019 16:47:43 -0700 (PDT) Received: from x1w.redhat.com (14.red-88-21-201.staticip.rima-tde.net. [88.21.201.14]) by smtp.gmail.com with ESMTPSA id u1sm10433763wrp.56.2019.10.19.16.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2019 16:47:41 -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=bG9RMPIGC9ljNya02ZnuD6xFZnx6LHmfx6JD2fgLckE=; b=adqvvPr6OvliCpivqvTDkGK5pQwwU3ewhTuLsLRCQEk84kVmVPjdrMkB0UNfCg7zlB oBcYILWfOQZ5/xZYuqggf1n4qHUx22Lc4oLoSjP6lV7GDKAz1h1VMG+cWnwhvkwF0XP9 lQ3CeE3jffuGat5ctNihyts9U1Xo/aIOiy+HMP54f/qmasHdf3gJL9j2lcTpxhfZ3Omy 5UwntNzjxICuMpA7S8Sf8cuXtSWhqtTOZ6Ka4Q436UZnmW9UpQQsJfl17/ry9G43NJ7f Ns0nopxdld0vPWVvKNwQHCE21zoUayIkXKNf7zp1vISoauT3CbkT4UQxcr2rcuqTZFb9 Xg0A== 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=bG9RMPIGC9ljNya02ZnuD6xFZnx6LHmfx6JD2fgLckE=; b=Fc1uG7ml7wE9H+TPyRdbSi0aL6fehvn5mFo4nIOXZEImvIhn0z56cS1LBaB4D0ABg+ PPZhOon46O7suX3ElkzQJg+BIz0vZWRKlgwkWenyLNcD+G5aAVPVR50CmB19/R/ZGXOi CEsLaU8yPz6LpoUME85xNDjxf/QM2aO33Gpa1hUaEmlj4FLO6bKXXf3iDTuCgKMNnTBD EG4EsiEcSKMnJaekbjxlBp9yzAZvKTZMWtt3plldKPXD/mvy1kSHnFS2wBAhJxK5nXx5 bfg+mYWDeHKV+Rq24i6gBobiQ1VgQhpJoXaQwNCtuH/wbVSt0S4mkJVHSmpWVE+FpBUE cOSA== X-Gm-Message-State: APjAAAXjzQe4crn2UhMaMjYsG7VPALakgJecBoSlnWYB+ZK2+tvGlDOv i6blnOm/IP53hQx9M590QqP5sOfG X-Google-Smtp-Source: APXvYqz+Xqeje+XUM0XtNWaXzciQQtB5xpxZpONv7PQ1gUn8R2r0pxMj5A7UANd8hdkOjpZgaRmi1Q== X-Received: by 2002:a1c:9c0c:: with SMTP id f12mr7379593wme.133.1571528862229; Sat, 19 Oct 2019 16:47:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 14/16] hw/arm/highbank: Use AddressSpace when using write_secondary_boot() Date: Sun, 20 Oct 2019 01:47:13 +0200 Message-Id: <20191019234715.25750-15-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191019234715.25750-1-f4bug@amsat.org> References: <20191019234715.25750-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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Matthias Brugger , Rob Herring , Alistair Francis , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Esteban Bosse , "Emilio G . Cota" , Clement Deschamps , qemu-arm@nongnu.org, Cleber Rosa , Laurent Bonnans , Cheng Xiang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pekka Enberg , Pete Batard Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) write_secondary_boot() is used in SMP configurations where the CPU address space might not be the main System Bus. The rom_add_blob_fixed_as() function allow us to specify an address space. Use it to write each boot blob in the corresponding CPU address space. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis --- hw/arm/highbank.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index f1724d6929..518d935fdf 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -78,7 +78,8 @@ static void hb_write_secondary(ARMCPU *cpu, const struct = arm_boot_info *info) for (n =3D 0; n < ARRAY_SIZE(smpboot); n++) { smpboot[n] =3D tswap32(smpboot[n]); } - rom_add_blob_fixed("smpboot", smpboot, sizeof(smpboot), SMP_BOOT_ADDR); + rom_add_blob_fixed_as("smpboot", smpboot, sizeof(smpboot), SMP_BOOT_AD= DR, + arm_boot_address_space(cpu, info)); } =20 static void hb_reset_secondary(ARMCPU *cpu, const struct arm_boot_info *in= fo) --=20 2.21.0