From patchwork Thu Feb 15 19:28:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Chou X-Patchwork-Id: 13559086 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 EA5AAC48BC4 for ; Thu, 15 Feb 2024 19:30:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rahQ2-0001k0-GV; Thu, 15 Feb 2024 14:29:14 -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 1rahQ0-0001ir-N7 for qemu-devel@nongnu.org; Thu, 15 Feb 2024 14:29:12 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rahPj-0004i7-GF for qemu-devel@nongnu.org; Thu, 15 Feb 2024 14:29:11 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1d7881b1843so11201095ad.3 for ; Thu, 15 Feb 2024 11:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1708025329; x=1708630129; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gEt4deq/UXy6XjJi0lNE/l34mZOHICza+3YtE+V4xPU=; b=aLXYWJAH7BfLmCtSEjsfLQENezwx4n7JvzqGWJuc0o6ZUU03Yb3fYU2RWYziSbT1uL kwueU/j4N9mirvNqZ+BfjQ6tiKuma1DwHTzw4R5XC2bDvRsjj+VFXme5aUNdhmovB5j+ agyWb/Z/BjvkSw+q3p/Uc4d5KAtugPz6zPw7BdZsqJP6Njhx+ma+HbiAav8z+Pl1ruXM 4TWzxKqB614QgmcB616Js3X0Ir4JK+ncQtL/ekDn11Hu/GeAt3hfU9Z7TbFBjgfxy7Z5 QCq/3ZwnbBUDwLkrSdyePr7El0q2BaiUSiXAf/MLivlvXQS1ir4K9ZsMO2h8zH7atXUB uZKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708025329; x=1708630129; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gEt4deq/UXy6XjJi0lNE/l34mZOHICza+3YtE+V4xPU=; b=HFuleJygEI3SrbfSQ3/n0QVYOq1jgPRN64onxX7hkM1AwXFi80v2gixAukx1VrWR7A 1y14/cOm+L6tHDx3JMC18EPDUSBQ9La4sVQ2TyA8FGr1hpRLlILDfZsi6fqZxZysYSbn r2caXYzwdx+RkqbBtSvY2nHLLWkh5GhJSWkV7bGO76XFmrngw57ekLCOq3XiGNoMuTYA Jyjb2u33R2w7gFK8FU5CpYyhmKZF70afrRDKjm8PB1j/gpEuUQE8uV6z7ZuOFZYZz2lJ AA/VktFfq6MSkOob7G4hfYIzJraSfiH2bzHzb36saW4yAlZzQdHPdDUNA6JGIfzvwd3M /PbQ== X-Gm-Message-State: AOJu0YwZwc9TB5gGjbUgZ5sf+v1U9QKSuDQbWpoS6pbzu2gJ86FGaMR1 G7cFLLJQdFGHyC37AwkOSQAZn7OuyrrrxztdYzuhle9MubF24TnTqA/rPia9yMShWBkdPpj+K+6 F06Eh4SOOA8sM/5blEIXFtshraucPNtv7f2TVrfAoo+XoFH1iVzic1jAys0F/tPcoyIaJnI/rJZ GWp2mmiew7pRcNY2wJuK+0Y61PyV99KY5aepl/ieFU X-Google-Smtp-Source: AGHT+IGHAHX1Tw7jQlHnb04leAp3wxKMj30AYnshK4kIzS48wvnjbVhwfahXCANJ18i+CPSkRl/wkw== X-Received: by 2002:a17:903:24c:b0:1d4:cd4d:923b with SMTP id j12-20020a170903024c00b001d4cd4d923bmr3115439plh.54.1708025329019; Thu, 15 Feb 2024 11:28:49 -0800 (PST) Received: from duncan.localdomain (114-35-142-126.hinet-ip.hinet.net. [114.35.142.126]) by smtp.gmail.com with ESMTPSA id u8-20020a170902a60800b001db5ee73fe9sm1618653plq.114.2024.02.15.11.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:28:48 -0800 (PST) From: Max Chou To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: dbarboza@ventanamicro.com, Max Chou , Riku Voipio , Richard Henderson , Paolo Bonzini Subject: [RFC PATCH 5/6] accel/tcg: Inline do_ld1_mmu function Date: Fri, 16 Feb 2024 03:28:16 +0800 Message-Id: <20240215192823.729209-6-max.chou@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215192823.729209-1-max.chou@sifive.com> References: <20240215192823.729209-1-max.chou@sifive.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=max.chou@sifive.com; helo=mail-pl1-x62b.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, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Max Chou --- accel/tcg/user-exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index c5453810eee..803c271df11 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -963,8 +963,9 @@ static inline QEMU_ALWAYS_INLINE void *cpu_mmu_lookup(CPUState *cpu, #include "ldst_atomicity.c.inc" -static uint8_t do_ld1_mmu(CPUState *cpu, vaddr addr, MemOpIdx oi, - uintptr_t ra, MMUAccessType access_type) +static inline QEMU_ALWAYS_INLINE uint8_t do_ld1_mmu(CPUState *cpu, vaddr addr, + MemOpIdx oi, uintptr_t ra, + MMUAccessType access_type) { void *haddr; uint8_t ret;