From nobody Mon Feb 9 23:00:40 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; 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 1496212442560326.57835704167996; Tue, 30 May 2017 23:34:02 -0700 (PDT) Received: from localhost ([::1]:57546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFxCj-00067v-6Z for importer@patchew.org; Wed, 31 May 2017 02:34:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFx8i-0002th-90 for qemu-devel@nongnu.org; Wed, 31 May 2017 02:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFx8g-000374-9H for qemu-devel@nongnu.org; Wed, 31 May 2017 02:29:52 -0400 Received: from mga09.intel.com ([134.134.136.24]:28402) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFx8g-00036p-0C for qemu-devel@nongnu.org; Wed, 31 May 2017 02:29:50 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2017 23:29:48 -0700 Received: from yangzhon-virtual.bj.intel.com ([10.238.145.52]) by orsmga003.jf.intel.com with ESMTP; 30 May 2017 23:29:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,422,1491289200"; d="scan'208";a="974970267" From: Yang Zhong To: eblake@redhat.com Date: Wed, 31 May 2017 14:29:00 +0800 Message-Id: <1496212144-14947-3-git-send-email-yang.zhong@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496212144-14947-1-git-send-email-yang.zhong@intel.com> References: <1496212144-14947-1-git-send-email-yang.zhong@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.24 Subject: [Qemu-devel] [PATCH v2 2/6] tcg: move translate-all.c to tcg/ subdirectory 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 , pbonzini@redhat.com, anthony.xu@intel.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" tcg: move translate-all.c to tcg/ subdirectory and also update related trace-events file. Signed-off-by: Yang Zhong --- Makefile.objs | 1 + Makefile.target | 3 ++- tcg/trace-events | 6 ++++++ translate-all.c =3D> tcg/translate-all.c | 2 +- trace-events | 3 --- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 tcg/trace-events rename translate-all.c =3D> tcg/translate-all.c (99%) diff --git a/Makefile.objs b/Makefile.objs index 2100845..1de6462 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -163,6 +163,7 @@ trace-events-subdirs +=3D target/ppc trace-events-subdirs +=3D qom trace-events-subdirs +=3D linux-user trace-events-subdirs +=3D qapi +trace-events-subdirs +=3D tcg =20 trace-events-files =3D $(SRC_PATH)/trace-events $(trace-events-subdirs:%= =3D$(SRC_PATH)/%/trace-events) =20 diff --git a/Makefile.target b/Makefile.target index 3ba2074..5d33174 100644 --- a/Makefile.target +++ b/Makefile.target @@ -88,7 +88,8 @@ all: $(PROGS) stap =20 ######################################################### # cpu emulator library -obj-y =3D exec.o translate-all.o cpu-exec.o +obj-y =3D exec.o cpu-exec.o +obj-y +=3D tcg/translate-all.o obj-y +=3D translate-common.o obj-y +=3D cpu-exec-common.o obj-y +=3D tcg/tcg.o tcg/tcg-op.o tcg/optimize.o diff --git a/tcg/trace-events b/tcg/trace-events new file mode 100644 index 0000000..989a06e --- /dev/null +++ b/tcg/trace-events @@ -0,0 +1,6 @@ +# Trace events for debugging and performance instrumentation +# +# TCG related tracing (mostly disabled by default) +# translate-all.c +translate_block(void *tb, uintptr_t pc, uint8_t *tb_code) "tb:%p, pc:0x%"P= RIxPTR", tb_code:%p" + diff --git a/translate-all.c b/tcg/translate-all.c similarity index 99% rename from translate-all.c rename to tcg/translate-all.c index b3ee876..7b25a16 100644 --- a/translate-all.c +++ b/tcg/translate-all.c @@ -25,7 +25,7 @@ #include "qemu-common.h" #define NO_CPU_IO_DEFS #include "cpu.h" -#include "trace-root.h" +#include "trace.h" #include "disas/disas.h" #include "exec/exec-all.h" #include "tcg.h" diff --git a/trace-events b/trace-events index 433865f..a25db67 100644 --- a/trace-events +++ b/trace-events @@ -78,9 +78,6 @@ disable exec_tb(void *tb, uintptr_t pc) "tb:%p pc=3D0x%"P= RIxPTR disable exec_tb_nocache(void *tb, uintptr_t pc) "tb:%p pc=3D0x%"PRIxPTR disable exec_tb_exit(void *last_tb, unsigned int flags) "tb:%p flags=3D%x" =20 -# translate-all.c -translate_block(void *tb, uintptr_t pc, uint8_t *tb_code) "tb:%p, pc:0x%"P= RIxPTR", tb_code:%p" - # memory.c memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t va= lue, unsigned size) "cpu %d mr %p addr %#"PRIx64" value %#"PRIx64" size %u" memory_region_ops_write(int cpu_index, void *mr, uint64_t addr, uint64_t v= alue, unsigned size) "cpu %d mr %p addr %#"PRIx64" value %#"PRIx64" size %u" --=20 1.9.1