From patchwork Sat Jul 17 22:18:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 479259 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2745334jao; Sat, 17 Jul 2021 15:23:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4s9bEPTuIxy8zpZUCj1OHNMyJZ+WEv/tloA3nuKkWgRoHYAColpOw6eUAUHI3psYpKxYW X-Received: by 2002:ac8:7b39:: with SMTP id l25mr10219186qtu.230.1626560592402; Sat, 17 Jul 2021 15:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626560592; cv=none; d=google.com; s=arc-20160816; b=TYwhufa/Gr6fE8ABFq7Y48ogeDvN1Et3KFhGgRvJV+Qg7MJjr+CPnF6UEwfBKB1UXG Y0EwSw8v3/J7JabD204JlBB4eQ8nfU4yh/JlwmC2sSadNkMgKjElnHimPOQnOWGrb4J4 wMGtlCyzSRGpcM4xqH/6Ay5fwT1kuXQNPr3xvF/VuSqwz0Pt3O7B07ptzsKPM1bJVbHJ TPnBP7OmZtN8ZhuNK1BKz27gYWY4qiniK1iHPo3IvAa0OmYgCspFbNqtzzLNQ303llfr haCkW86r82yxwZGRDDrffJjEVASs7sJPaviHzglcurTz7RAvCM3X/Q5CG41sz8lWTh39 m8/g== 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=g6WC/1OFwmMEJWjhaux71v3WymnN3hUDPV/lnz7IXaA=; b=JmVjTmstwwptSjDlUWSqkBMTLCjC6bOVXh9GiYkBzQsFFXy5QPKHhPnId3q4vclP5d dX6g+VVxAdXQBDJt7ueW3GoCLHWuJTw13IKzyyVBkFFmZz4GRPyVF3pEKZatT5YmazRw ZgJ1V4qAqF5vgDdu6x8wlcZR85wwXIp8tx02wscrjfmG5mB7wJprv/TkOhqofS/Zc546 ALYmpja1diD90hzhKVYbJ9YmtJoRy2lZO1hrBAx2O053bOYXSD/tmV6A35KFYZk2PMOS pbTuYIwvtv8evazP6j/pIC5Vx3c4h+CVxn6VbpEmYa3PPQmhIadfxWl46wJSsiOUbp9I FsVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=yT3ibeQm; 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 f13si12326026qth.69.2021.07.17.15.23.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Jul 2021 15:23:12 -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=yT3ibeQm; 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]:45432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4siF-0007YZ-Fj for patch@linaro.org; Sat, 17 Jul 2021 18:23:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4seC-0006sS-3m for qemu-devel@nongnu.org; Sat, 17 Jul 2021 18:19:00 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:39575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4se8-0001yz-3T for qemu-devel@nongnu.org; Sat, 17 Jul 2021 18:18:59 -0400 Received: by mail-pj1-x102e.google.com with SMTP id p14-20020a17090ad30eb02901731c776526so11583186pju.4 for ; Sat, 17 Jul 2021 15:18:55 -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=g6WC/1OFwmMEJWjhaux71v3WymnN3hUDPV/lnz7IXaA=; b=yT3ibeQmsaMWNd8m8STIiuyLKvQWRz66pufl9VG6X7+extxDVqGBPc9ik8G8cFIgIB OmIac1BklWmPx3dEvY5yzZ63c5kek2cYQNC9TrSwcGWnF2eGgbO9dodIp/i3w5GFjCxL vfxn4WhC0zn0KAzsojESJ2pmS8/0zBHeNdKXJe4BJ6pDV3nOuz7WLh0wSRs1qctAPOHK Zesbv8jVhk2lFDMj6UT6i+QmLWpKc084piKfYJK6OGNnv4UwNq5MoocC85ZB4ggGS1P/ 7gSYiwUSL2XzuswnfMGHU5EccyQhIVgkOnjIFL2+AGEClQ+Bhb4gtwi8VkeAQx883MRR 2McQ== 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=g6WC/1OFwmMEJWjhaux71v3WymnN3hUDPV/lnz7IXaA=; b=MlSG0UDXgs5+mz187hMJ876zddrrYuZ59+Z14nVBeB3wtTqIgZqMPaXdKeUOSiypqJ KxJ0Woo/doUcKjFftSs7GN2kSfBLU1NW3QJEqqLWNH2hMQNcPFwZzgCNYoDsVe4CyxMU ZYr4JW4Azlzs2gh4dp0F9r+cfx0RH4j6Got/JaiJ1h8+H7UF5x8w65o+IYrKHJjkaj3y LWCfhh2Oh5kbfEJ++V6nISH80GnkRapFBYNQ+o0hszJYdyTqyzhW9eHaQjevpQqC//Xm yhrormkTXDJCGDRpWKXvYWNs9ULeMmK6LnFUlMt0choHPLRt/kj8oZOgevDd6R7gah0n Rdiw== X-Gm-Message-State: AOAM532STJ71KbukrhGcbNFruV9Px7i7CwAn92BggLzNrDxNRiU+LufL u7vz5DNMClIfaoHsbFlj69kGDLngZJvorw== X-Received: by 2002:a17:90a:5b0f:: with SMTP id o15mr22919550pji.34.1626560334083; Sat, 17 Jul 2021 15:18:54 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id n14sm2405091pjv.34.2021.07.17.15.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 15:18:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 02/13] accel/tcg: Move curr_cflags into cpu-exec.c Date: Sat, 17 Jul 2021 15:18:40 -0700 Message-Id: <20210717221851.2124573-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210717221851.2124573-1-richard.henderson@linaro.org> References: <20210717221851.2124573-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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. Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée 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 Reviewed-by: Philippe Mathieu-Daudé 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,