From nobody Wed Nov 12 15:02:45 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=1571353521; cv=none; d=zoho.com; s=zohoarc; b=bTdSeW0hDKnJZxahZA4NPV5epzvbppAYVnSUyzy+DijZAe0v46BX2+jPlKwIV9u4mF4R8mob4AOsb0PYjOOTOgBIRY8OKNlGpSHzWrCoHFrS4OroKrUcZQ2+gRcJexk8oyfl3VSAuOqHiZ/ekctPY0W+mqQS4dRn9wQkcHZr2q0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571353521; 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=SPwh/5qVrOqbtH2sWZGntoARCo1pc/08McUrD2o7BSfU84UHPERUdWOhLebD1SVa0d0rsioZJJlvJun2NvZfshtdj/nkTxQLFvWBk9YHRbPSPPUta4YvHCe4aSk+OaugLPpM3KKxcUIgj9HN/Gz/14jU8yu0EIwmqprgTWSE310= 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 1571353521929309.5073013505212; Thu, 17 Oct 2019 16:05:21 -0700 (PDT) Received: from localhost ([::1]:33846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLEpc-0007xX-CL for importer@patchew.org; Thu, 17 Oct 2019 19:05:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41200) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLEj1-0000y4-Dd for qemu-devel@nongnu.org; Thu, 17 Oct 2019 18:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLEj0-0002Vo-FV for qemu-devel@nongnu.org; Thu, 17 Oct 2019 18:58:31 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLEj0-0002VH-9a; Thu, 17 Oct 2019 18:58:30 -0400 Received: by mail-wr1-x441.google.com with SMTP id j18so4123182wrq.10; Thu, 17 Oct 2019 15:58:30 -0700 (PDT) Received: from localhost.localdomain (14.red-88-21-201.staticip.rima-tde.net. [88.21.201.14]) by smtp.gmail.com with ESMTPSA id m18sm3993873wrg.97.2019.10.17.15.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 15:58:28 -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=vTAHgF3lJHR3WYvlOROJlt7HdhYy13GxTy4ieBOveHDFf4NtrshRFiZNXdLoGM99on xwSGQ2Qv44mszHuAK/EtHC00/h+WBR2lxPJBWuXqIrQRN9RRt+jKwj5Li83jPw10Cd7u Da4VCZ6+sU3UK2U2ltD7mGjefZjHlfmblRbzRpj6LfT6zYjpayy98MG77MPNQK3Gsz4h IUK7YTIbnLM4kPWCfuF5WKFdvbuVZSRduz1y5J84ru2NTpOY51RG5sMtZmB4P3MG1boW 5VpMKOs/ojHoOjvJgtNTXHQdoPzz7b0vYcAt8JpGdFZhXGI3D3Y8MznB1i+QWwq3A+Jh 4NvQ== 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=GOYAqpmRCld7ajVRth2klwRCgdjVI/Aj4Iu5aFdfDO4jYyTkjhe/wGccryO5GCLJby uh9r0xUHe0wLUz0FiLXXhFh8PleBHzt6J5b8n/VG2K8n1O6Lv3t5de0mPWUTxy4hxlLe lFWPOR38QqICVwedmX18sFDycdoQTzUVJIGWNvBQDnPaUEbgx2Elo3jFDJiyDJvUyj3H yoF73X3PlJVuilp9xbBcOX25Lzxu4eTbHEbG9beFkeyDjBuGOMMQz3CUybE++wcNvIj7 chHhEUZhst8ctVdrRJEwcgF7KQDyRY+vKfUumlxo9iy1fNGf8GAtRIHaPsP6C0O6WHG0 3Kqw== X-Gm-Message-State: APjAAAXvbF1SeDHrBRdpLCRxWEw1PrcfIRy0zs2uaZ3zAAQkWtXkbHwA lK6lMvQJOWseqTU48QmXCDVjRV64 X-Google-Smtp-Source: APXvYqzYvLP9iPPURahfyPOTtIBYJfN5hyTjptJaULVSAAQkJmEYgkzpEEmvRaPwiFWluccLdIknow== X-Received: by 2002:a5d:44c8:: with SMTP id z8mr4977355wrr.66.1571353109098; Thu, 17 Oct 2019 15:58:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 10/10] hw/arm/highbank: Use AddressSpace when using write_secondary_boot() Date: Fri, 18 Oct 2019 00:58:00 +0200 Message-Id: <20191017225800.6946-11-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191017225800.6946-1-f4bug@amsat.org> References: <20191017225800.6946-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::441 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: Rob Herring , Peter Maydell , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Pekka Enberg , Esteban Bosse , qemu-arm@nongnu.org, Pete Batard , Cleber Rosa , Laurent Bonnans , Cheng Xiang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Clement Deschamps 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 --- 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