From patchwork Fri Dec 30 00:01:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 637854 Delivered-To: patch@linaro.org Received: by 2002:a17:906:1189:b0:7d5:1b03:224a with SMTP id n9csp4173344eja; Thu, 29 Dec 2022 16:20:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZfrlAUcxajvC+atS4SaGr9BGM0jGubnVAzhTmUUQos6++6nPtsM04i8f1JmkxLKSYheue X-Received: by 2002:ad4:50ab:0:b0:52e:5988:cc75 with SMTP id d11-20020ad450ab000000b0052e5988cc75mr30638205qvq.14.1672359494585; Thu, 29 Dec 2022 16:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672359494; cv=none; d=google.com; s=arc-20160816; b=zC/mw8qwe55x2ilnPmQkhcIlOmyYHMLF1gbigHtL8l2RINynLt7/AAYm5oiE7+M731 twaWdt11regYrfSUV/F6md5Q2RGKczRkdsMiQk27dheC/XZ05EaN+XwriGZXn52p2NPT E+Q/bexV7yP9LRSb102ljhsIXfzvVgtLJg72FEHgMhSlf8Dn7PeZwHsAl7wDUDRchltj UxLi9CcJaFTp3PyvuWdJyP9i4IN1EWU2kyv42qaRsFl839HdAYLmOazn2r/p1UGuTyHx agPLJY4lx1uf+En+/3EcadnlzM5Nr9XWEx35xwbinP42pLcJrKbIwdnszYnH5DHMkSYd qNSQ== 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:cc:to :from:dkim-signature; bh=0A7BGyHqAN6alhYKfJ9E1yLwyik0pT3tSjb2m0LkGsk=; b=clDE0jp21jVeTcXQe5DvjUFUrJTCiokVyAOdQ6wXgwmx/p0jLN0RDvYZScR8j6/bav xUfTuDYGYEKzR2dEy4bNdxClM0qkZXrgC+S0/VqHM3zmX4yuUM1N9Dd+/5ocG6TkXZu8 TQpoO2OHZmHT1damuIk1QbKjNXr0N/laUjzMOQrySu4RzwNRQf3WRD5FaSqzjTfw6f94 Z2J5gfJj+zoiJaVvhR6vzbdp9obRkex1PAmeUDR8JJ3Ol7MuadHd8CQ8VIudqpYThZUq 3UA6l+RjbBtS0FVehBIJ/4vRefs6RDnLGFqAv1hIlpjqJHbrcDU2wVcpgKmWXcyDhD3q 3h2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VI7UhUvE; 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 u20-20020a05620a0c5400b006fc1db7643bsi9875042qki.520.2022.12.29.16.18.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Dec 2022 16:18:14 -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=VI7UhUvE; 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 1pB2rE-00034O-Pn; Thu, 29 Dec 2022 19:02:44 -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 1pB2rD-00033g-SV for qemu-devel@nongnu.org; Thu, 29 Dec 2022 19:02:43 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pB2rC-0002hk-6a for qemu-devel@nongnu.org; Thu, 29 Dec 2022 19:02:43 -0500 Received: by mail-pj1-x1034.google.com with SMTP id n12so7889704pjp.1 for ; Thu, 29 Dec 2022 16:02:41 -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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0A7BGyHqAN6alhYKfJ9E1yLwyik0pT3tSjb2m0LkGsk=; b=VI7UhUvEZDHWqYD5ERMz9FgVAKOPMz7RTN3SpfU7hq9yxsPA2L9AjwJ1OLssbcJ6dz GvSsQGdeKs+HnBop3EDFvtmKhlgthEn2cnMLl7s9KYxYM8tkeRdIotLiMseNaCBUPw3Y xlZfHHJ5wRhkbLBTMadikHFljKlCwfUZwQKyh5Hlj7mdVKdVnx5ZpF9o8Zhif+2p2REZ whGaYynLOQshrugchZbk0yhIckWr66EewmXAWNs3qx16/+q5y1CyEF8rwaitLUMPzs/+ EEAegjWNsDmuwnFkaRYXxk2siIndV2uke8VwBXCp8RR52gC1ySEsFM/gMhVb04qQZHl1 t7xw== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0A7BGyHqAN6alhYKfJ9E1yLwyik0pT3tSjb2m0LkGsk=; b=DmBBlCPJnTK2wHBZbr9KSdhQWO0pYMeQat+uI/fEobGksFt/VZKoER+iOUp45nGLiE 9G4jtQOrtVMwvu0IYfnOojOaNmBDRsy8Zya/S78kaeKg+QfZsYH2ITevHJoRSXz5Z//H qtB4sj5obfrV7bt4weUh9WzuTKvrVVnCX8PMjdpcO7+EPiy6czh+xI8JZN5vm5iOf0Zs dRwTlC/bhVBrw638rKxZPbCYCL31X7iYBpIuovoHax2fmt3Dh3x+RgKyt5VyKMxRBxkH RchXoWjuRGTmcBhzdrgqeoyZwDrFF9Q/kbh2RXCoCh4ldJMsXI2T+wwl70+A57kBYewA MErA== X-Gm-Message-State: AFqh2kr0yMdPHngWsPlbZGchTHWczd1rTzGBEP5sZZHa59FvKqhYif2g A4Bh7D1oM+QQcXjvrK6fvvsRMkWJ7ixFUW2B X-Received: by 2002:a05:6a20:e613:b0:ad:aaac:d3fe with SMTP id my19-20020a056a20e61300b000adaaacd3femr31399933pzb.47.1672358561413; Thu, 29 Dec 2022 16:02:41 -0800 (PST) Received: from stoup.. (76-14-210-194.or.wavecable.com. [76.14.210.194]) by smtp.gmail.com with ESMTPSA id j14-20020a170903028e00b00192849e1d0asm7343953plr.116.2022.12.29.16.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 16:02:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 20/47] accel/tcg: Set cflags_next_tb in cpu_common_initfn Date: Thu, 29 Dec 2022 16:01:54 -0800 Message-Id: <20221230000221.2764875-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221230000221.2764875-1-richard.henderson@linaro.org> References: <20221230000221.2764875-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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") Reviewed-by: Alex Bennée 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 78b5f350a0..b177e761f0 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);