From patchwork Thu Jul 1 15:25:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 469102 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp497809jao; Thu, 1 Jul 2021 08:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4oQaqx7FIqo/TiTgFnd26sljXwRC+ltpBdOFw0jN/EFVbvDeRDtYvHn34Hi/pPtH+KZI6 X-Received: by 2002:aa7:dad2:: with SMTP id x18mr478227eds.319.1625153336748; Thu, 01 Jul 2021 08:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625153336; cv=none; d=google.com; s=arc-20160816; b=gou5BM9Ay/T/UNnJENUC1YopHbAOttD8CiSdBID/tIyPosw05U/nqs4vXtHEjYZdZN J2SWZ+lBRn/lT397fksBrrP9zcdCnHwVZau1PaM/CvfNF5qyo5wpYCZtbnoa0ayAqw83 K/u0H0Em5WWhSXcWcvOMxE/gGVqkzvQAspuy10g1gqkISMd3voFaE5HhQd9hsV377rNG c5nCQNnDumYyplLIvjywbFZbJVWRkQWG9NrMsNz6ffXIltGBVEa/Jp1V459TZk3ua3ih vC3piLOWd6sSDVY6NHfry4DZyKud+nROpo6gByy4MtXjoqwCj2jPq89Z9OMXqNDpqLDE YB1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=se0upj8uwwed3TnJTE/iIfzC0n2efWNdGM2VdkwZygY=; b=piUo6WeEyfbfLydJJRUaFEC5DAA52mW0dAGkZOAAceXK2uElNldZtWXJYIQWKxOZt3 6lTXq5OG/syQF/JA04vvJrNfLsgyfPMXvARya9aAX5R/soErHepWsHGiazS4rXKwwfqu 2amlsLTMSFNwYrRBnSRfJgn5puqB+pd50VQ0q3/RB0DiFylMncGA3i/s+tasgTv07p++ aGfwtuxoQigImpUrizQpOALhcwxp9NG2KxPXgsfZHEEOXHO2ruDpX0ia4PSLbCxReloD LuPhPfatVWWBNVvXOccxDDKErew0reLlJ2DSeTEjc2oS8ZjkRWysiUmrOT2tM8MORKEt ZUqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KOqZw+rx; 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=fail (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 i9si108933edf.46.2021.07.01.08.28.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Jul 2021 08:28:56 -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=fail header.i=@linaro.org header.s=google header.b=KOqZw+rx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyycZ-00023P-Q5 for patch@linaro.org; Thu, 01 Jul 2021 11:28:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyyZh-0004WP-RK for qemu-devel@nongnu.org; Thu, 01 Jul 2021 11:25:57 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:37428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyyZU-0008DI-Kv for qemu-devel@nongnu.org; Thu, 01 Jul 2021 11:25:57 -0400 Received: by mail-pg1-x534.google.com with SMTP id t9so6428251pgn.4 for ; Thu, 01 Jul 2021 08:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=se0upj8uwwed3TnJTE/iIfzC0n2efWNdGM2VdkwZygY=; b=KOqZw+rxJfNVRBW97RxKMPpf1mHicOBT7+X8PwrobaYRY6fWZKG2gf9FrKUcyymsnv TTRx9O1c6GzV6OU5i8iQ81GhBQQaARjrlLnW6oZnf7jDenEHRzaY3SsKghoJYbxsfquR T5+PO0VDcANvArVcLkx4DZlk9vTiHq7NmDU8wWWTO1CR0o14yzm42MMjgeRODHHaDPSJ FtC+mEC7ByT/Sl00qYctjfBULrGnBNzrkf3pix14931yYQUTikiU23QcMcvbxj7Y2d6p tCfpeZUEhyIw03zRAVRlZkjjx7R+YLgPncw7LEzq9dhqr4kw03cnG5BI261pAk2bLiqU k+Ug== 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=se0upj8uwwed3TnJTE/iIfzC0n2efWNdGM2VdkwZygY=; b=GENSq71RVAb1De5CFN89iDWPFvVU/2zbJo18JKu26EtMFQnVK8qa41Sd1sWdhfxAF0 bbSd0YkpeX45/kDGWdOT7HakVNTwhIBnhX+KpJMCJuVEop3LrP8cbv8in049t2Tf+5vz KWLJB9wotgplIsm7roLD+9MqTkOkzoWCiuAIR2hO3RMuQjKYWmEHohM62bZmHs1R4/Es DmCRH9YHvwmsVKt3Q2X+cINMjDQdNbvoGJLCnMUJYcaCeA1sUbYYvDF3FyBVYI+T95FR 6xXzvnvsIM/WUdunB+ARFDaTqkvwj9k2RSxWgJI+EvH+Xo9Ym2CtzAqdao3U9hZaSe4L ZZog== X-Gm-Message-State: AOAM5307DL8fMUP/IUU+7RfrRiczxwU9Wo53qoJkWo3FZYKoaT48g9dA d+Rso5Gr0iGlQSj9dPFFMGR8h9exWH011A== X-Received: by 2002:a05:6a00:23cf:b029:2d5:302e:dc77 with SMTP id g15-20020a056a0023cfb02902d5302edc77mr514244pfc.63.1625153143392; Thu, 01 Jul 2021 08:25:43 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id j4sm10213197pjv.7.2021.07.01.08.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 08:25:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/17] accel/tcg: Move curr_cflags into cpu-exec.c Date: Thu, 1 Jul 2021 08:25:28 -0700 Message-Id: <20210701152537.3330420-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210701152537.3330420-1-richard.henderson@linaro.org> References: <20210701152537.3330420-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x534.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will shortly have more than a simple member read here, with stuff not necessarily exposed to exec/exec-all.h. Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 5 +---- accel/tcg/cpu-exec.c | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index dfe82ed19c..ae7603ca75 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -565,10 +565,7 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb) } /* current cflags for hashing/comparison */ -static inline uint32_t curr_cflags(CPUState *cpu) -{ - return cpu->tcg_cflags; -} +uint32_t curr_cflags(CPUState *cpu); /* TranslationBlock invalidate API */ #if defined(CONFIG_USER_ONLY) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index e22bcb99f7..ef4214d893 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -145,6 +145,11 @@ static void init_delay_params(SyncClocks *sc, const CPUState *cpu) } #endif /* CONFIG USER ONLY */ +uint32_t curr_cflags(CPUState *cpu) +{ + return cpu->tcg_cflags; +} + /* Might cause an exception, so have a longjmp destination ready */ static inline TranslationBlock *tb_lookup(CPUState *cpu, target_ulong pc, target_ulong cs_base,