From nobody Mon Feb 9 16:35:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499100153497967.924513857712; Mon, 3 Jul 2017 09:42:33 -0700 (PDT) Received: from localhost ([::1]:36299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS4Qh-0006H6-8E for importer@patchew.org; Mon, 03 Jul 2017 12:42:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS4KO-0000qz-Cf for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dS4KN-00087f-IK for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:36:00 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dS4KN-00086o-Bc for qemu-devel@nongnu.org; Mon, 03 Jul 2017 12:35:59 -0400 Received: by mail-wm0-x242.google.com with SMTP id u23so21542451wma.2 for ; Mon, 03 Jul 2017 09:35:59 -0700 (PDT) Received: from 640k.lan (94-39-191-51.adsl-ull.clienti.tiscali.it. [94.39.191.51]) by smtp.gmail.com with ESMTPSA id r5sm4867459wmr.9.2017.07.03.09.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jul 2017 09:35:57 -0700 (PDT) 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; bh=Ex2DPmJmRoBpcEzb8KdU3KCNwWWorF93AR6SYasqLsw=; b=A8tvUV2CEGKeKgRfukfUKHEPl/QJN54fIMvvc3tJvMeqlKpWDwZ4Z/ZAcvo9u0yt28 WDmvdbn4Ay2UWkjZlhP1Q2hwnk7z+i6NvduvSOPD2X3kEBToxnXK6Tjs21avgKFsVtJY 5aT/MkB04uj9bvi76BdTOiCFVeVPV2KcNkiB0/9qjcFoiI85SRI7WyxTc0dj97MHb74j W58P9gOIAyJHrAobyk5j3Nhn9HM53z+CwCF6roA+8XQy6xgRCEogyZr2qdfp70mDqR7e XM26nd1ejCS4oSrPixlOFcCcyJiWce2Piq0QSs00ZW83Qsolgiz0070dle9esA491dnR NnXQ== 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; bh=Ex2DPmJmRoBpcEzb8KdU3KCNwWWorF93AR6SYasqLsw=; b=CLVfTUcUux1r2ZegxNALRyjfY8HmQ6p3ZhtFYVcBE/jhtGFid3hBJsZ2TKkb2Ye1Xn nX1gXQHFnS7J9svk2yQ8+9z6FPko8KeEJ+14klVOxcx0z/Iqg1Rqp3vwcnU6Xl5whI9N lFUMOih2DwNUBYBTEd/2do3lqridWwKFmBjlf1W90WhtvObrriMrqru2+Shim+jl3W9+ SmlVLFumCkxU3vgGEP5q/WFa8Himlkyw01Kl/MqjyUvNzJfdD8dmKsCvvbISTJXVr3P7 c+zsvIh89OTsMMDr0QLAzrbIewqZgWDThal0OV9SjKYwXd8MyHvxMkADgnMy7RwFlp0w Qfsg== X-Gm-Message-State: AKS2vOxTW6mEA2En+aleDOWgXZ90lb72+b5Xw/g8W5Om71/eoxIDE10O qJBK7tCvIJLqMQ6PBA4= X-Received: by 10.28.134.11 with SMTP id i11mr24565594wmd.77.1499099758104; Mon, 03 Jul 2017 09:35:58 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 3 Jul 2017 18:34:43 +0200 Message-Id: <1499099693-22903-13-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499099693-22903-1-git-send-email-pbonzini@redhat.com> References: <1499099693-22903-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH 12/22] tcg: move tb_lock out of translate-all.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yang.zhong@intel.com, thuth@redhat.com, a.rigo@virtualopensystems.com, anthony.xu@intel.com, rth@twiddle.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson --- bsd-user/main.c | 1 - include/exec/exec-all.h | 4 ++++ tcg/tcg.h | 4 ---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 04f95dd..fa9c012 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -25,7 +25,6 @@ #include "qemu/config-file.h" #include "qemu/path.h" #include "qemu/help_option.h" -/* For tb_lock */ #include "cpu.h" #include "exec/exec-all.h" #include "tcg.h" diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 724ec73..0b56432 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -467,6 +467,10 @@ extern uintptr_t tci_tb_ptr; smaller than 4 bytes, so we don't worry about special-casing this. */ #define GETPC_ADJ 2 =20 +void tb_lock(void); +void tb_unlock(void); +void tb_lock_reset(void); + #if !defined(CONFIG_USER_ONLY) =20 struct MemoryRegion *iotlb_to_region(CPUState *cpu, diff --git a/tcg/tcg.h b/tcg/tcg.h index 9e37722..da78721 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -757,10 +757,6 @@ void *tcg_malloc_internal(TCGContext *s, int size); void tcg_pool_reset(TCGContext *s); TranslationBlock *tcg_tb_alloc(TCGContext *s); =20 -void tb_lock(void); -void tb_unlock(void); -void tb_lock_reset(void); - /* Called with tb_lock held. */ static inline void *tcg_malloc(int size) { --=20 1.8.3.1