From patchwork Wed Oct 26 19:18:18 2022 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: 618816 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp623436pvb; Wed, 26 Oct 2022 12:24:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+Tm4XoZdwXbnCEdqOmNTSvUvDRqIGN3xuUQJKYVgrh23vSntrQsVz+vIn4cTrS4qyxIbY X-Received: by 2002:a05:620a:11ba:b0:6ec:5639:a384 with SMTP id c26-20020a05620a11ba00b006ec5639a384mr31776174qkk.453.1666812241708; Wed, 26 Oct 2022 12:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666812241; cv=none; d=google.com; s=arc-20160816; b=rMM78W4VjpAjQJVjuNxXnovNkqC8B2qxxxqpbyIRBE5re0SAokkhENFBvPlY4Mnk1/ HTbCuDbzPzhPS7ZGEy7SdkX6eUM2pKbhxoyVUrwiQzcpouKwVjRy+YHyNYqZEp+5Ovb1 b/t8CnFyHwOWeuWLbETHt9lnsZtQBXLcO9XcawwQPz0yFQ3YlgQTUlbgdNdzX9fJ2IM7 EVc19yozpZx8HiaRXJU8CozgvazhNSyxZhaJh+ZFLhEJ04+mWhXqkTII4qNvle2WtlmJ aALEymFD6QDMgEIAfAQOiiIWgzwbfFLdOUtcDwhR/J9PmFqCr/C+6ve/MaQUhqMiRDkT JVCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=zZ7vlB5G4gE9+icHVq6Fuskp82aBSH1yxuuRzo1DuC4=; b=JOi5fDSI9IMr3w4njatlf3Z6hSRcLVUVIlmYQbYd78S5dJlQTpB9o0uQjJ2KTRJI1c 6y3YQQ/pSqkZZ0AmGtteCaaEes2e00USiMYx5Oek1PvRLt14lIuHwZIFT6ec6XK7O+5w pq4M1N9sWF822RqeADInsfB6809AhQAxOpxtVJwdLhYEp5blwp/hsa1+76CYyH+3AgIL ECkGD3szbZ1Z1MaEC9e8/1DAbnyW3UTBVI9BIOFHVHX1+TKtYxTzwQyJxxLCpl+QDv1D m6FCOQeCOmnRDo+I75Y8u3/+Mx7Arn9mbH8T0LrMt/q+vRY696GDWWDlyx1qrCUoS0A7 PSJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QsuL1CZq; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dz25-20020a05620a2b9900b006f988e553b3si1024038qkb.249.2022.10.26.12.24.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Oct 2022 12:24:01 -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=QsuL1CZq; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onlvG-0008Ar-V4; Wed, 26 Oct 2022 15:18:42 -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 1onlvE-00089g-4g for qemu-devel@nongnu.org; Wed, 26 Oct 2022 15:18:40 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onlv6-00022q-Da for qemu-devel@nongnu.org; Wed, 26 Oct 2022 15:18:39 -0400 Received: by mail-wr1-x42d.google.com with SMTP id y16so17627906wrt.12 for ; Wed, 26 Oct 2022 12:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zZ7vlB5G4gE9+icHVq6Fuskp82aBSH1yxuuRzo1DuC4=; b=QsuL1CZq25P/ZzPvZdxwJmOq8tiEpePohzz/upKYLpT36Ud33Z6Ip7K4+1RzEEn7uX 1O6wtvNJMNx5l3NO/H6/mnq50XT18ofMDAueQoQVsbxPtFMLzLWmodNnnczZrdILdCGt gBr2DmE3q+PiL/Iuwm4d39ht3hrqNxPqegB4nMGhwhBUfkocsmZWkRZVwmMy/Sh7GFhu AaI/6zJgX6Zpo+v2cZTz5v9lwYQrZplK029htWlqHvDaNUBnfOUioKgoVTwtO42rgEIJ yBZnhfU2A61JY/yHKtjnGCL1S5IGoDt8d9/aMxJ0YhuhmLpv/VZAIOGQTfU1OxlANtnj Mm7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zZ7vlB5G4gE9+icHVq6Fuskp82aBSH1yxuuRzo1DuC4=; b=kU4qlFr/7/amRRcemYfXwvbRGzg0VHloeR8QWfgb2hwHm4xtEeaUgrs42UzKop5u/0 dq07fesbEm1a0aO6QkTkXXLIHeZ+vr9leP3PJ3kc3BxmJb5OAdfg597hQFN6WSa689Ss Y8prLUUVEwc463oQXD3Nk9M1tDi0oH4CmtqzWQvTu7lDPzbpRUIGoTYHcfM8VsbnMECm RU+/Zzckx32E11ppjCu2yLeAAeZoMpI2Vc7QGL7cD34+HSAzOwbQpPoyfd96VO1bgBW/ SAhX75NqmVrbfYv7YuDeUJNXsFbjqtzG0wmRG6grxtIMfzCmNXcx4qFIf1JF+ms1VNbr ozLw== X-Gm-Message-State: ACrzQf1nOHm5A03/q8Grea7IN+fql5LqEVhe5mbGSob1CfGVTywpmP+Q 6fwOacQ09Gtg86E4FMFIlLtIV1gjgkZ2WbbM X-Received: by 2002:a5d:59af:0:b0:236:6b90:1e65 with SMTP id p15-20020a5d59af000000b002366b901e65mr13352581wrr.362.1666811903983; Wed, 26 Oct 2022 12:18:23 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id bp4-20020a5d5a84000000b0022e57e66824sm7496407wrb.99.2022.10.26.12.18.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 26 Oct 2022 12:18:23 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Paul Burton , Jiaxun Yang , Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aleksandar Rikalo Subject: [PATCH v4 0/3] MIPS Bootloader helper Date: Wed, 26 Oct 2022 21:18:18 +0200 Message-Id: <20221026191821.28167-1-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org This is a respin of Jiaxun v3 [1] addressing the semihosting review comment [2]. [1] https://lore.kernel.org/qemu-devel/20210127065424.114125-1-jiaxun.yang@flygoat.com/ [2] https://lore.kernel.org/qemu-devel/5a22bbe1-5023-6fc3-a41b-8d72ec2bb4a1@flygoat.com/ *** BLURB HERE *** Jiaxun Yang (2): hw/mips: Use bl_gen_kernel_jump to generate bootloaders hw/mips/malta: Use bootloader helper to set BAR registers Philippe Mathieu-Daudé (1): hw/mips/bootloader: Allow bl_gen_jump_kernel to optionally set register hw/mips/bootloader.c | 28 ++++++-- hw/mips/boston.c | 5 +- hw/mips/fuloong2e.c | 8 ++- hw/mips/malta.c | 122 ++++++++++++++--------------------- include/hw/mips/bootloader.h | 8 ++- 5 files changed, 86 insertions(+), 85 deletions(-) Tested-by: Jiaxun Yang Reviewed-by: Jiaxun Yang