From patchwork Thu May 13 08:46:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1477962 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Bk4+qKJg; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FgldB5tfbz9sWX for ; Thu, 13 May 2021 18:46:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED02B81D48; Thu, 13 May 2021 10:46:28 +0200 (CEST) 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="Bk4+qKJg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0AD0F81D1B; Thu, 13 May 2021 10:46:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 6854081CDE for ; Thu, 13 May 2021 10:46:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-ej1-x635.google.com with SMTP id l1so2823859ejb.6 for ; Thu, 13 May 2021 01:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NKuBgTHKxqNm9VS74707zoFRPzNJe8IcP8wZt24zjeQ=; b=Bk4+qKJgeYPzqkpQkK3uuYutvMbsJ1j960ZZHIM3rrXDit+ESetIC1ww181KZxW5v2 nWEbV/X7qISXm/xOzzzq7DPsfBmuSm/8Ott6dmcobZ0NwRgskxOm1WdFpjdgUoQTfE7z rgBPSM8WRN3OBLPUy/vMz7lXe7s7KFh2nPM/308Va/v26YMAppqpPirQ406+52xRAas4 K0PeKwXP+C4/cf0qA1m5eJCjw25i5t+bzuNy9S3icdT5SDBcoNW4eLUx33mX47DaiMSz ckeDsAOEDD2HHMO9JUupv6PssBR3mg/0/E0LlxNBnY27I/vlTUMy2uV2aMSUKOEPwTdq UFmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NKuBgTHKxqNm9VS74707zoFRPzNJe8IcP8wZt24zjeQ=; b=DcbWjZn1bXzrpJTs1yFyi7+kPoCRzzXwmmIbW1R0a2QspuyZAsr/3L7s3RED4GKryI hvm/mIjJZWKuum8Iy36KEn8f8XgDzu08/XIuMIs8C51TVUlcQ0qVS8KJuYFIFyl+Hxp4 +L5fedFG8WKRBKtCMj5MNwXqHopmlBH0z4iq8BD1C/vTfHU6M3IJbm+lDBMKpAMZ7JvM B5G2qw7gejRQDR7jL/eZ/zmuoD+XDYTq/o3KSS+c++q7Zp+Wiqbs9xYYjnvMm22uSHFF v9J7NBsEWynI18CloJZ8ceMGoczu3L89rmAIiDvqjVaUxmi+RiRK3Lf9GDN4WS1BlbV9 5jrQ== X-Gm-Message-State: AOAM530GMktOnRiaCsY25CrMd9wtBuAVu3rZ86e6sQSSsA0aOG5OmOIl URrZ1pH45CH+27zuVwb6+gc= X-Google-Smtp-Source: ABdhPJz2xEt+4JL2/4yo046gxmKhaf/yqNdoQvvWy7SGWk6qmf2RIkWnZTFTCne/IbBQwZm9PeVbDw== X-Received: by 2002:a17:906:ae8f:: with SMTP id md15mr42823741ejb.244.1620895580112; Thu, 13 May 2021 01:46:20 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id p14sm1895141eds.28.2021.05.13.01.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 01:46:19 -0700 (PDT) From: Bin Meng To: Rick Chen , u-boot@lists.denx.de Cc: Heinrich Schuchardt Subject: [PATCH 2/2] riscv: Group assembly optimized implementation of memory routines into a submenu Date: Thu, 13 May 2021 16:46:18 +0800 Message-Id: <20210513084618.2161331-2-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513084618.2161331-1-bmeng.cn@gmail.com> References: <20210513084618.2161331-1-bmeng.cn@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Currently all assembly optimized implementation of memory routines show up at the top level of the RISC-V architecture Kconfig menu. Let's group them together into a submenu. Signed-off-by: Bin Meng Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 82e10da11e..63665d210c 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -278,6 +278,8 @@ config STACK_SIZE_SHIFT config OF_BOARD_FIXUP default y if OF_SEPARATE && RISCV_SMODE +menu "Use assembly optimized implementation of memory routines" + config USE_ARCH_MEMCPY bool "Use an assembly optimized implementation of memcpy" default y @@ -357,3 +359,5 @@ config TPL_USE_ARCH_MEMSET but may increase the binary size. endmenu + +endmenu