From nobody Thu Nov 13 16:18:10 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581525762371431.72484981325067; Wed, 12 Feb 2020 08:42:42 -0800 (PST) Received: from localhost ([::1]:40290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1v61-00059Q-5m for importer@patchew.org; Wed, 12 Feb 2020 11:42:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36612) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1v53-0003Jb-05 for qemu-devel@nongnu.org; Wed, 12 Feb 2020 11:41:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1v51-0001ie-WE for qemu-devel@nongnu.org; Wed, 12 Feb 2020 11:41:40 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:36349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1v51-0001i9-QH for qemu-devel@nongnu.org; Wed, 12 Feb 2020 11:41:39 -0500 Received: by mail-wm1-x335.google.com with SMTP id p17so3298332wma.1 for ; Wed, 12 Feb 2020 08:41:39 -0800 (PST) Received: from donizetti.fritz.box ([151.30.86.140]) by smtp.gmail.com with ESMTPSA id a16sm1195122wrt.30.2020.02.12.08.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 08:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Oo23LZ+bVDGb+bI6Wuhk5pe6slIqDak+OkHafTFG1M8=; b=d7lj4n+gGvjSeLgmK0OhVz0NM90F/ZZqU2NfatMzFSfMg2FdpqcJW/t/bJxywR6LRu DsbEF6qg6j8xQhoi8uzr+peOcrlRLJDx8caLvvKdVqipVLWzHq7+NnpEqje0rRoXl0ta n3xugMBSBHdbC8tEuN3vrx5/mbyEBMZJXY9sdN4nXf18tzbCh2e+RarQgUyHETGSfHcU mdhWNpH7Lzq+n2YH3RbwgiYGVs5+RgaAWCDre/PnnVOy+vKmwZrZNWOoQOtYRJYS8GRF rX6z6E/rfX2QiAuphgA/WJFO4qkcfv3p+293pmZ9p7c/U8CBebODG/TXxr5rPctZq771 WAng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Oo23LZ+bVDGb+bI6Wuhk5pe6slIqDak+OkHafTFG1M8=; b=qXhSdZDk1/RDgtuSqoQyFNgXiwpHbOW4Z4cFtiPAsnRlk86XaE5HDt2cohXnWf72Zp 4mBAxpdV+PgIEciL/7mm5GQZ4QOsoBVFz4sljC653w2zEIlaUVImNnOcUFD8z515NsFB K7KPqmAuQD7MLMoi/dSzcrs3zHil0e7gYKoYGrsrboY9ctfYe3XxCU4vjh8ak4b7ICa1 AtYIXaPB7Pp06Rv/btbRuKBVltnBe0jACAlOWiaiGEnalXVGao2SeFLKGnZyFOazD5wP YVhf75qx+NcRoFCu5AE+zYkVmk+ToFktAV6proTHBe/bNsBb6oNFx5+BlJoylvk/YSw2 JakQ== X-Gm-Message-State: APjAAAWVzkUJwHTCPNv/yZPdNQs56uKdWhiClsmOhZZBeaI0ec6Z1mZi keFlx5Sm+BOsheEQ/4IZXgnx5rHk X-Google-Smtp-Source: APXvYqyYRPihTdET1TDMyHzIpvQHHZAjXmCNuf4dgq93R4RQuwG+DbeMzt8e0ijVbEB37AdsQXcRxw== X-Received: by 2002:a05:600c:21c5:: with SMTP id x5mr13987288wmj.72.1581525698598; Wed, 12 Feb 2020 08:41:38 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 5/9] exec: do not define use_icount for user-mode emulation Date: Wed, 12 Feb 2020 17:41:25 +0100 Message-Id: <20200212164129.6968-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200212164129.6968-1-pbonzini@redhat.com> References: <20200212164129.6968-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) use_icount is also defined by stubs/cpu-get-icount.c, we do not need to have a useless definition in exec.c. Signed-off-by: Paolo Bonzini Message-id: <20200204161036.20889-1-pbonzini@redhat.com> Reviewed-by: Alex Benn=C3=A9e --- exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exec.c b/exec.c index 67e520d18e..5fc3746053 100644 --- a/exec.c +++ b/exec.c @@ -98,15 +98,15 @@ CPUTailQ cpus =3D QTAILQ_HEAD_INITIALIZER(cpus); /* current CPU in the current thread. It is only valid inside cpu_exec() */ __thread CPUState *current_cpu; -/* 0 =3D Do not count executed instructions. - 1 =3D Precise instruction counting. - 2 =3D Adaptive rate instruction counting. */ -int use_icount; =20 uintptr_t qemu_host_page_size; intptr_t qemu_host_page_mask; =20 #if !defined(CONFIG_USER_ONLY) +/* 0 =3D Do not count executed instructions. + 1 =3D Precise instruction counting. + 2 =3D Adaptive rate instruction counting. */ +int use_icount; =20 typedef struct PhysPageEntry PhysPageEntry; =20 --=20 2.21.0