From patchwork Sun Apr 28 21:49:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 792908 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp1417499wrh; Sun, 28 Apr 2024 14:50:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVcvwXQ8cz7W89owLkFOa4Utcx7MU7GZ8wAra7g0XyuYSNaPjZDrWIyV7DRN/A7u6YRji6pXxFH4DbfI4nHiV6e X-Google-Smtp-Source: AGHT+IHxgvKJ68mUQXO++MR50Y7p3sH8IISyBsRTj4aAR7BTKzezFTL6+ckNkakmLERCcHwewJZj X-Received: by 2002:a05:6359:5091:b0:187:1dd4:495e with SMTP id on17-20020a056359509100b001871dd4495emr10087881rwb.22.1714341043270; Sun, 28 Apr 2024 14:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714341043; cv=none; d=google.com; s=arc-20160816; b=ZeZ3yg3i889eQdG6rfE8ZKL2DbyPm1Ldj0AVYw4tMj1EicAViWt0FNvt00LPSDVSgs k1MH/eycuStfINOpxRbLyqOHjzJ7VY3myiioYNcGr0aeqESbBP6G43xQkmobSkpSSvk0 tVzYGnpoPUhMMfuxYu2R/gzotxlFt0Jy9FkRY8vKFurhHprmUG+TXdSMW+QkPAzqo+Ue OYsXBWpXEFb+YwnjvIm73wHTZmuihi0qH/0gRJGqv/gxnCt+O1BWsePavRjJ8fK2gY74 uwDpfwtVhrNxgw3+naeKG82lwnYkE8GrHPss57FYnqzHc0Hb0sc9xdtaOIGmEo1HLH0b d1TQ== 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=PiKDLwE364Pw013trdbS6B+l3BI8G2aZyNTUUJSMStE=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=kMEalmPP/nkzLLEdFjZCuRDZr6vmGmLVwDrXE/gEYijvxD2zJdXYFmhOy9UmTYs9Nx zBT5CQWIICk6n21XkfDEmYmXpNK/Cfss1nxf+Prfcgk+bIiiOj+mtJ1ANF4yNWB+mjHx ayeQRkvSr14zWDir3O2UzicCgYcgx9B/QDavfovHmh1qBrmC5xlNYEOgPfN/a/QahmQa Hl45QvlXlIhm4gzmQyc/dnimXaHkUUbyJW29rgz0pFXLw4mXoPI7KJxfXkpNSFz6WxX2 QNdVAXLYjAyJSBSKu4PF2BTyjciz6Gkyr5FrAu44qmtnKaXG39NrtIq91zDhVOB+/Hld ntJg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UcCEgzjq; 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 ke24-20020a056214301800b006a0cac7d82fsi1875259qvb.342.2024.04.28.14.50.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Apr 2024 14:50:43 -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=pass header.i=@linaro.org header.s=google header.b=UcCEgzjq; 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 1s1CPk-000362-BY; Sun, 28 Apr 2024 17:50:28 -0400 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 1s1CPh-00035I-DT for qemu-devel@nongnu.org; Sun, 28 Apr 2024 17:50:25 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1CPb-0001Je-Kp for qemu-devel@nongnu.org; Sun, 28 Apr 2024 17:50:24 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41c1b75ca31so4419245e9.2 for ; Sun, 28 Apr 2024 14:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714341016; x=1714945816; 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=PiKDLwE364Pw013trdbS6B+l3BI8G2aZyNTUUJSMStE=; b=UcCEgzjqTqWs+LW/8Pp7vqHI9MTjATyg+9KEeyI5SxIwzPXt7jEVHm5sZwrIBEApzF OJJNvhxyu3ysg0P8TlLxY3LX4Po/Vl2yQdAM9GAv1S2FZd1Zm5TvJ/QJoRl7+vtqxmR7 WeKDBclMzLnXvFTcNAqKub+zCERiaWKsWbtT40zkX1aT0YzzNNXqRG+obM+cOoS/f0XH BfoIswGjYi/pHOJTxp237aLqAAYDnub5Zz1IMFg2YZSSGYhVGthfeC+a+IRBhHK2l/Dq R7QXQ7LBow/mCVNz5Dl47cP+klZMLkkFAtF2umGMac+bY5rHBE17ITxvu9dgosSN9mOU 9kpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714341016; x=1714945816; 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=PiKDLwE364Pw013trdbS6B+l3BI8G2aZyNTUUJSMStE=; b=g8xs8s5pc2KOImPDnTXWKVS27l9PNS+pTzq2npsTxcP7nj92ol3IqrvXMOoFKwBaCf kpv+moBtY8Anxha8OQ991d4i2rIyLeuyI2QU2z4jygoGxYwsms2QONOOtzBDwPY1aRTS 803Dm+U+yFGzVAEaIEdTxkqWRgJ/XvLMuYRWqn57plQ2FolI50IaFNyDJQGM674kDK2H 1zmyHQMfLzCxJYxzs6jPZy+OoE/9pf+lBZYXayUNcepn7IF8uYWwuxm+Ry4Se5sYIoXR m7+H2xh/eAyQhKNI9/hLDEP0O5Hl21DVH3l2VI+MgU8GUWCLDyyZptYe3MtrPWSWNSDB Ec2Q== X-Gm-Message-State: AOJu0YyzR6CDTJU3hdQlO+ELyj/Wq5vHTkbgumkLC2c1T3g3yqabVOLp FrqaO2K3680MqsPicCk6//Svl1tOgyA8rS/nhN+GDCp8BcNhJU6sSfZ+4ltO57Zo/8etNf6baC7 z X-Received: by 2002:a05:600c:501f:b0:41b:b07a:c54c with SMTP id n31-20020a05600c501f00b0041bb07ac54cmr5546361wmr.9.1714341016281; Sun, 28 Apr 2024 14:50:16 -0700 (PDT) Received: from m1x-phil.lan ([176.176.142.130]) by smtp.gmail.com with ESMTPSA id k29-20020a05600c1c9d00b00418948a5eb0sm43150505wms.32.2024.04.28.14.50.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 28 Apr 2024 14:50:15 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH v2 10/12] accel/tcg: Remove pointless initialization of cflags_next_tb Date: Sun, 28 Apr 2024 23:49:13 +0200 Message-ID: <20240428214915.10339-11-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240428214915.10339-1-philmd@linaro.org> References: <20240428214915.10339-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 cflags_next_tb is always re-initialized in the CPU Reset() handler in cpu_common_reset_hold(), no need to initialize it in cpu_common_initfn(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240427155714.53669-13-philmd@linaro.org> --- hw/core/cpu-common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index a72d48d9e1..c4175cc4b9 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -255,7 +255,6 @@ static void cpu_common_initfn(Object *obj) /* the default value is changed by qemu_init_vcpu() for system-mode */ cpu->nr_cores = 1; cpu->nr_threads = 1; - cpu->cflags_next_tb = -1; qemu_mutex_init(&cpu->work_mutex); qemu_lockcnt_init(&cpu->in_ioctl_lock);