Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 425E4C433EF for ; Wed, 24 Nov 2021 19:40:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9620836E2; Wed, 24 Nov 2021 20:40:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="le/qdPIS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B9A4382FB3; Wed, 24 Nov 2021 20:40:29 +0100 (CET) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 717CE80735 for ; Wed, 24 Nov 2021 20:40:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jim.posen@gmail.com Received: by mail-qt1-x829.google.com with SMTP id a2so3803512qtx.11 for ; Wed, 24 Nov 2021 11:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gxhTjEnhro30/024dYMObNKNdeydg4z1GGQxV2eikDE=; b=le/qdPISKnvswDR10r9cAfZYXkIqUpeeCd5162BGeUNW4kGkT64TMVO6DKvnL7KCl3 FRR4NkAa6whcxFP5GZ46pWJlKoNK1Gd+L2HYHubOUSRYf/tkW5GZ3zOwug7LCeqncJoH nPPJkyHvYyiM9kBhGeG/wXoo5+QhK/5LHDF9vckNuoLXBqX1Ew5Ua7ndmkdijO16a+NU zgfjnE0xt8LqabvLHtMOGblTOByjVLIk+uk6OXdSH2v4FxbtBbbf1vC6tCpaumXxPKLj Fmb2OkECXXMBU6d9Q6uZGiFdmRapc8WOpQaTI7cmTTf/MOgfO1rf1ArVwL33CyiJyLvh iu7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gxhTjEnhro30/024dYMObNKNdeydg4z1GGQxV2eikDE=; b=dwmp+M1MaFQVEDeVphzrG52fpfC6Ko8iamzYjUDYIKKBHkYHYFPSeSV/r/Zj+3X5HI k1F9KEMqjPTOYC0KZbk89FpqAi4Nztx5EnXI0o7knxJCfIzG/Rru1K6bdC+Ihqj2vl05 uYAcbxuO0RzjXls7YVQzdfk6PutqFv824oEoXLUNTn3yZ1jEMgP917uz7QRO2Tnd4rkW hK2ToRPe2z1TNNFhpBg5tiDFL/lJEvZbauI2IZ2o6RvQ09OouhWhcF5ckmV2XNEojwSh PykOysGpG3gzcNXzL1kBiMt+WOOo2gQgkZmPWqiGfQn8kkUNHwImEIqSI91n2tB8Sg1T q/BQ== X-Gm-Message-State: AOAM533HH41kBlzTao/hmx047pEQSruZtKqc7+lO1gLnx8khSmANbbm6 92ZX6D6nCF9NUrYu2Na5fQoMGBN/kFw= X-Google-Smtp-Source: ABdhPJwaQgW7lsbgxEhNMkgwuZHAIo2kEMxM4YVSzkhXjkB8ERJf57gwzh9AoVifwfnEm/erCo6A3Q== X-Received: by 2002:a05:622a:551:: with SMTP id m17mr10481419qtx.98.1637782823859; Wed, 24 Nov 2021 11:40:23 -0800 (PST) Received: from localhost.localdomain (cpe-68-175-35-150.nyc.res.rr.com. [68.175.35.150]) by smtp.gmail.com with ESMTPSA id o1sm395201qtw.1.2021.11.24.11.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 11:40:23 -0800 (PST) From: Jim Posen To: u-boot@lists.denx.de Cc: trini@konsulko.com, mbrugger@suse.com, Jim Posen , Minkyu Kang Subject: [PATCH v2 1/6] Compile for ARMv7-A with virtualization extensions Date: Wed, 24 Nov 2021 14:39:56 -0500 Message-Id: <20211124194001.443232-2-jim.posen@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211124194001.443232-1-jim.posen@gmail.com> References: <20211124194001.443232-1-jim.posen@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean In order to assemble instructions that read the ELR_hyp register, which is part of the ARMv7-A virtualization extensions, the assembler target architecture needs to be changed. Signed-off-by: Jim Posen --- (no changes since v1) arch/arm/Makefile | 4 ++++ arch/arm/mach-bcm283x/Kconfig | 3 +++ arch/arm/mach-exynos/Kconfig | 1 + 3 files changed, 8 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6c9a00c5a4..68c6b06a0e 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -14,8 +14,12 @@ arch-$(CONFIG_CPU_SA1100) =-march=armv4 arch-$(CONFIG_CPU_PXA) = arch-$(CONFIG_CPU_ARM1136) =-march=armv5t arch-$(CONFIG_CPU_ARM1176) =-march=armv5t +ifeq ($(CONFIG_CPU_V7_HAS_VIRT),y) +arch-$(CONFIG_CPU_V7A) =-march=armv7ve +else arch-$(CONFIG_CPU_V7A) =$(call cc-option, -march=armv7-a, \ $(call cc-option, -march=armv7)) +endif arch-$(CONFIG_CPU_V7M) =-march=armv7-m arch-$(CONFIG_CPU_V7R) =-march=armv7-r ifeq ($(CONFIG_ARM64_CRC32),y) diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig index b3287ce8bc..500a504c35 100644 --- a/arch/arm/mach-bcm283x/Kconfig +++ b/arch/arm/mach-bcm283x/Kconfig @@ -8,6 +8,7 @@ config BCM2836 depends on ARCH_BCM283X select ARMV7_LPAE select CPU_V7A + select CPU_V7_HAS_VIRT config BCM2837 bool "Broadcom BCM2837 SoC support" @@ -19,6 +20,7 @@ config BCM2837_32B select BCM2837 select ARMV7_LPAE select CPU_V7A + select CPU_V7_HAS_VIRT config BCM2837_64B bool "Broadcom BCM2837 SoC 64-bit support" @@ -36,6 +38,7 @@ config BCM2711_32B select BCM2711 select ARMV7_LPAE select CPU_V7A + select CPU_V7_HAS_VIRT select PHYS_64BIT config BCM2711_64B diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 7df0e17617..6d0e95ba44 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -19,6 +19,7 @@ config ARCH_EXYNOS5 bool "Exynos5 SoC family" select BOARD_EARLY_INIT_F select CPU_V7A + select CPU_V7_HAS_VIRT select SHA_HW_ACCEL imply CMD_HASH imply CRC32_VERIFY -- 2.25.1