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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F135CC4829E for ; Thu, 15 Feb 2024 20:09:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rai2o-0007aK-Um; Thu, 15 Feb 2024 15:09:18 -0500 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 1rai2o-0007a7-3w for qemu-riscv@nongnu.org; Thu, 15 Feb 2024 15:09:18 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rai2m-0004Ds-Lk for qemu-riscv@nongnu.org; Thu, 15 Feb 2024 15:09:17 -0500 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d7232dcb3eso10441085ad.2 for ; Thu, 15 Feb 2024 12:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708027755; x=1708632555; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0FEc4bzySbDLp/Zv8hWKPlmHTGgcWjeDSlRGZ8d4Glw=; b=z4NfhzhPixNxUp8p1rHbKVB4OZTfTn3FYDzWQv9DYfdvYvFYnO+hdS3llpUZB3l1rj 8mt+iMFPcAC9aYD10gS5jO//WbGtNTMuVcx1BqbQTT9k29dVaHmsykwBNOuESFuL3j/r kM4i1Y5j6WhmSGslLex+JusaUHiyRMG0pZBLO6ANGLSv5jAl1I+jJMAlstU7vmMp8XeL i/6ckeByc72UvNz9c45VIhUGYltzXe0DlB0PnIK3sSI0btPBMUIl3iSsDRD1Cw9Agg08 mLiXmDLzLy9HMTD3waOKg5EawKps3eczTGA1IA4HIMQO4xpMH7cYKB3SbAiSOlTUQyOa 2Y6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708027755; x=1708632555; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0FEc4bzySbDLp/Zv8hWKPlmHTGgcWjeDSlRGZ8d4Glw=; b=tVeCiNpQhdpQzjwdlY2MsMOqRsnHH4ppXqF65fLYNdhTIqXy1uxd/e8CNMjyDyTJsH u5gX6I4dUyq9geDQ97qhkndbQIIA+/ml0B8wfUUnQfB0iwOMu2y9VY0gswGo/zCgp7hU J3HD5ot5dWRp3uJxewYH7t7qx299Bjm3XoPRnch0KQDgsNtHSzQHTaBi2ANtOpxvPqpH /ANTKoOMYE6TvLYH3LBEV4fIb6adec/o1hT0a1cLUVab2BjZYjpkcoy6x8+kabHZmBub 1Uc1SIheihICp1OQgzaLr4Eke6ZkN+OFWfbWcpETQ+1fflAkRtqSRgFcMwGo3UYnbLpk AgHw== X-Forwarded-Encrypted: i=1; AJvYcCVG3Th7tmnZZZZlMub2uZ0MCgPF5dAhbSIP4KGhNaKgPnbN/2qAsFy4Jz94md4BtO57utEcECJwGFyQhC4wARpky+uZvbk= X-Gm-Message-State: AOJu0Yzcgi2DOvjoHWKYrVgYnkA7/gmfIv9fqtI0rERigJT4Nvm23nqp gZY1xIet623QUNQ8iSuDR7aJBHnZvtauV6DxebuiGdPJ3QyaHHKPjaRz1O1ch1o= X-Google-Smtp-Source: AGHT+IGBb1xFfV1hpqCVcmSQEuvagjMs5RLboDbkCIkltu4TdPrkHz4NN/jJw+OOrHlNxwhqXunbvA== X-Received: by 2002:a17:902:e5d1:b0:1d7:17e6:44df with SMTP id u17-20020a170902e5d100b001d717e644dfmr3703178plf.14.1708027755182; Thu, 15 Feb 2024 12:09:15 -0800 (PST) Received: from [172.20.1.19] (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id d23-20020a170902729700b001d8a93fa5b1sm1634176pll.131.2024.02.15.12.09.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 12:09:14 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2024 10:09:11 -1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 3/6] target/riscv: Inline vext_ldst_us and coressponding function for performance Content-Language: en-US To: Max Chou , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: dbarboza@ventanamicro.com, Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Liu Zhiwei References: <20240215192823.729209-1-max.chou@sifive.com> <20240215192823.729209-4-max.chou@sifive.com> From: Richard Henderson In-Reply-To: <20240215192823.729209-4-max.chou@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 2/15/24 09:28, Max Chou wrote: > /* unmasked unit-stride load and store operation */ > -static void > +static inline QEMU_ALWAYS_INLINE void > vext_ldst_us(void *vd, target_ulong base, CPURISCVState *env, uint32_t desc, > vext_ldst_elem_fn *ldst_elem, uint32_t log2_esz, uint32_t evl, > uintptr_t ra) Yes, this is important so that ldst_elem itself can always be inlined. Reviewed-by: Richard Henderson r~