From patchwork Fri Dec 2 05:39:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 630228 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp720009pvb; Thu, 1 Dec 2022 21:55:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+nrwqGjX4C8eY98cf72yEpO1tm1l/s47gdRPtSEAutft5rHqEqnLCMFx02EB31AyEkOEP X-Received: by 2002:a0c:fe8c:0:b0:4c6:bf45:38b0 with SMTP id d12-20020a0cfe8c000000b004c6bf4538b0mr43295889qvs.45.1669960501845; Thu, 01 Dec 2022 21:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669960501; cv=none; d=google.com; s=arc-20160816; b=HYh2gV/T2Ea++pxrWnCza79zSxxKaqIA7n3vEb4PVmvLiUdo7jxUqY3h60bR6Ci62M n6tKjCifFOYA8xQudfWNnB7fYNfSal9/Opi7xfS9fvKNpk5hrQWfKgNhNiDi/vUsDKOv wTr0M66smzQot0AjaX3kSmlr9scSFD0RJH/jCTH2RBoKf0isUrWxm9YJe+A0bO3AMP+z JICpnliyrXCA546W193IYUBPtz8rSkyCjOTa1bIAakIQhsYbh0rGFenyPrpT+vqC1Fc5 WSB1KEdc/Hb3IGIfAI4gVVINIfUQXLZJfCEyEbU1jKfi4MPKl3j/irmKS0thWzd51bkT QrBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=1fcBWbZUmm5Jnpz4Izudl/A6K0HNswQpl9r23JhxDb4=; b=Ns0FV/tmLH91Xzww+o53AsDHyoRaPzaHXFh2HutPVE8eRumhD7QMbH97DX+FlaExvV +FC4az1Puf1CFD1WmOJuKqcwNhinJ+5ozCLaFWj4d2Ar8+YngzrgnIt3jGX3KW45evqj Du1MyrifvnoUEeDbE45R8HhciEsCMps9Fi4DMtuOBTrVus25vtSNu1wnAxMv8vK/5+fp vNBQZUWT5l/aiwmDEAzZn4dzKoWumyBj9qdwrAEv10A6hQSYTjHhlA093iI6k3WbGHXe Uurn7ij4YjCC4VhqVenwrJlI5FBll0fUpqfytOWt+Hpd8yNe/h0qwPYvTfgqdmzgEXFk m/uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jAaQj/OL"; 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=pass (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 q18-20020ac84512000000b003a51d65b8b7si3404897qtn.81.2022.12.01.21.55.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Dec 2022 21:55:01 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b="jAaQj/OL"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0ymV-0002a5-PU; Fri, 02 Dec 2022 00:40:15 -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 1p0ymU-0002ZB-Au for qemu-devel@nongnu.org; Fri, 02 Dec 2022 00:40:14 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0ymS-0003KV-1X for qemu-devel@nongnu.org; Fri, 02 Dec 2022 00:40:14 -0500 Received: by mail-pf1-x42b.google.com with SMTP id h28so3939111pfq.9 for ; Thu, 01 Dec 2022 21:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1fcBWbZUmm5Jnpz4Izudl/A6K0HNswQpl9r23JhxDb4=; b=jAaQj/OLps/ZCDo+ryycvBLcQ428UdEhRpxAaItRzQg/O3qg3C6QLK6bxLT3daUiay MNnEdlEQo3H3qbijuwTkk+laquUKo9D+0ziVZUoQSl2iw9+j09p3lgzxVO3t9OBH4FwS LEzXrNBNbQAErEwe+0eAksIjTzsMHsNYyIG/e6MYdi+5KotRE0RgkDQmnzFz22phEm1H IrlFl8MfEYfBDW/+/XK7L8xokGfAUkcuWXXpW+US6rfgpFTMPx40V+bjwRxfkIFQbewN 56cK+m7lWojYYwCg3dlCatWY9XQlRC6fX4+2ZtQwIprgEF4dqRznRjWQZDIBYhGzC9Kg 4qRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1fcBWbZUmm5Jnpz4Izudl/A6K0HNswQpl9r23JhxDb4=; b=fwDbG5iTVT667v+v7vz1d4CQfYrTvxoJPdMyVvOg31gxDTWJZXg6wmqokwYsYROHA+ Q+aVbgpiBlZX5TyYYc+TKXtt/QPCSKVoydZ7X8SZhzBaIRp5lz01i0xjSqJdLfq1pzPf DB38YW7kpE4tkkYFtvIKXT4B1e8wl4vqQ7SHtsgklaLaCBNYeBBjdcbkiz4ImgSStD7n LWwLjf4JUTeUtMhbSDJ+JDmS3WcPhSfr7B3RY8BVEFE+MZtiJnG7bKtn4cPhcigh2YcA ZsxOivYfIx2EhVp9whNORglOoMmplzOLLgmQ0XnxvyzKR9NiMCVNpbSSaxrAwTbYZhqn yuog== X-Gm-Message-State: ANoB5pnfIIwyDcNvM4nvU62i+1PqT3SHC7YngEq4bD1lXO88f0zENPKg PzGK/16217Yb6vCCWBlrLSGbUUDyFEYBR+JW X-Received: by 2002:a63:f91a:0:b0:477:8109:ccea with SMTP id h26-20020a63f91a000000b004778109cceamr47569155pgi.376.1669959611302; Thu, 01 Dec 2022 21:40:11 -0800 (PST) Received: from stoup.. ([2602:47:d48a:1201:e3cc:2e37:17d4:f1d5]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b00186f0f59c85sm4637075plh.235.2022.12.01.21.40.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 21:40:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 11/34] accel/tcg: Set cflags_next_tb in cpu_common_initfn Date: Thu, 1 Dec 2022 21:39:35 -0800 Message-Id: <20221202053958.223890-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221202053958.223890-1-richard.henderson@linaro.org> References: <20221202053958.223890-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org While we initialize this value in cpu_common_reset, that isn't called during startup, so set it as well in init. This fixes -singlestep versus the very first TB. Fixes: 04f5b647ed07 ("accel/tcg: Handle -singlestep in curr_cflags") Signed-off-by: Richard Henderson --- hw/core/cpu-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index f9fdd46b9d..6a4022eb14 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -235,6 +235,7 @@ static void cpu_common_initfn(Object *obj) /* the default value is changed by qemu_init_vcpu() for softmmu */ cpu->nr_cores = 1; cpu->nr_threads = 1; + cpu->cflags_next_tb = -1; qemu_mutex_init(&cpu->work_mutex); QSIMPLEQ_INIT(&cpu->work_list);