From patchwork Thu Oct 25 17:20:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 10656291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E88C13A9 for ; Thu, 25 Oct 2018 17:49:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7482C183 for ; Thu, 25 Oct 2018 17:49:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F7512C2A6; Thu, 25 Oct 2018 17:49:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BFA942C183 for ; Thu, 25 Oct 2018 17:49:24 +0000 (UTC) Received: from localhost ([::1]:56146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjl5-0006pk-HJ for patchwork-qemu-devel@patchwork.kernel.org; Thu, 25 Oct 2018 13:49:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjKj-0006hw-1T for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFjKR-0000DX-Bk for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:21:56 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46825) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFjKR-00005K-51 for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:21:51 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 914E5221D7; Thu, 25 Oct 2018 13:21:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 25 Oct 2018 13:21:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=RdKw0VYMLqJ4uQlFIKB1lEb75wqkafIN+uDRelpNa1Q=; b=LAp2F GOsZvsuqIy9JemvSnTPVy+DUHgcj6rYudgaEol/ZkwNilnURc2hfwVaIYW/QpG+4 j3WQ0V9+AvY71mOJAZqy8zqBsIztu8TWJhTyQbQvYdPjc755I4mG9xA0TbNxd/qg FTrvt/sY+O+osquYEFugav/PGswA0LCQKk3Lxk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=RdKw0VYMLqJ4uQlFIKB1lEb75wqka fIN+uDRelpNa1Q=; b=i7zLuLj9JLA8+JPul7638ZziOCGuoZZnfZ7m5ntcEPsPP yT/7VNTlpjaoB5pyw/7X/vOnvgYk1Z9oLt7+M/f7Bhw5QX79OIB6vZhwxniXVPz5 yRjYMWN1kTc3ReDju/YxK9niur9+YUg/qcZoMGb7HaDFw4W99t5OvNx4+PHm3gxq 1P+M6U9cCGQ2/Zhy1SGn0pZSaXfKBFHdqDEsd1zWWEIeWhiaAETRrMBd/Hg5glhr 9wRPhDs/dKWX+uXQhFpc7RkNTEFCaVv1HhVjtiGuTuPFmIridzbLE6+qjVQ3Ff5k lu8ESyMBepArbq8Bwiyxi5zS0ZYc7IHtKtlD40qqg== X-ME-Sender: X-ME-Proxy: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 36DE4E4A44; Thu, 25 Oct 2018 13:21:12 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2018 13:20:33 -0400 Message-Id: <20181025172057.20414-25-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025172057.20414-1-cota@braap.org> References: <20181025172057.20414-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 Subject: [Qemu-devel] [RFC 24/48] translator: add .ctx_base_offset and .ctx_size to TranslatorOps 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: Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Llu=C3=ADs?= =?utf-8?q?_Vilanova?= , Pavel Dovgalyuk , Stefan Hajnoczi Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Emilio G. Cota --- include/exec/translator.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/exec/translator.h b/include/exec/translator.h index a28147b3dd..e20ca9f854 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -106,6 +106,8 @@ typedef struct DisasContextBase { * * @disas_log: * Print instruction disassembly to log. + * @ctx_base_offset: offset of DisasContextBase within DisasContext. + * @ctx_size: size of DisasContext. */ typedef struct TranslatorOps { void (*init_disas_context)(DisasContextBase *db, CPUState *cpu); @@ -117,6 +119,8 @@ typedef struct TranslatorOps { struct qemu_plugin_insn *plugin_insn); void (*tb_stop)(DisasContextBase *db, CPUState *cpu); void (*disas_log)(const DisasContextBase *db, CPUState *cpu); + size_t ctx_base_offset; + size_t ctx_size; } TranslatorOps; /**