From patchwork Thu Oct 25 17:20:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 10656237 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 0428313A9 for ; Thu, 25 Oct 2018 17:27:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA85E2C1DE for ; Thu, 25 Oct 2018 17:27:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD0082C1AD; Thu, 25 Oct 2018 17:27:15 +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 6D0C42C1AD for ; Thu, 25 Oct 2018 17:27:15 +0000 (UTC) Received: from localhost ([::1]:56045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjPe-0003II-Lq for patchwork-qemu-devel@patchwork.kernel.org; Thu, 25 Oct 2018 13:27:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjKg-0006ho-2n for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFjKc-0000Mt-KR for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:04 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36879) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFjKb-000085-SL for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C6442221F4; Thu, 25 Oct 2018 13:21:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 25 Oct 2018 13:21:13 -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=RmFi/0AGG399b47l7MBRD+r2dl326fV1b5eRzpDR25Y=; b=c/EZu Idcie2glnokWJf2wTD27ohJqo4xhbAyA6VWfeE8MkbvCpQzBQ5lxvyMVgHLAeiwc ymnTZ8e+aWmeFazvU59BmnQ0WPc8PT7hZh63vY97HB22o6AGALCDT1tOPesZ25YD D+p5wvldnXraw/jWfLvIgWAE+6C2TfbFhsZlSw= 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=RmFi/0AGG399b47l7MBRD+r2dl326 fV1b5eRzpDR25Y=; b=yecxr2p1wF1zcbUHsssBChDjLjbOppqws6HliABjDVPv0 zd9G82fLMUWSPc7dbQQpCwpYzB91zvdLyUf5QrPeehuO3yOYnTW2etHfN0SSzBsG lamid8mkrv1NDtE0OXLyyU4/Q900ctbdje/jmtVsG9AbFBwDnUanfY+97Klf1qV1 bhMrPKRgM9rKJDkvm4gMqIaE8vQ1fO2qSN9/+TyN+FP6ZNQNBISro/BtlB/yyGHa qIBM5E+bd2jotKJ9h5spOZNYcwu+t2HMY/yEsP3FzX2ZUU8vNYfu1rf9E8f4cvPc JzS4AV7Ik55q6ZSJ1tUhVhvIesak3wtL+Q2WmpZxg== 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 76F71E455F; Thu, 25 Oct 2018 13:21:13 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2018 13:20:38 -0400 Message-Id: <20181025172057.20414-30-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 29/48] target/hppa: prepare for 2-pass translation 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 --- target/hppa/translate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 6c2a7fbc46..08ebbeb21c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -4757,6 +4757,8 @@ static void hppa_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs, the page permissions for execute. */ uint32_t insn = cpu_ldl_code(env, ctx->base.pc_next); + qemu_plugin_insn_append(plugin_insn, &insn, sizeof(insn)); + /* Set up the IA queue for the next insn. This will be overwritten by a branch. */ if (ctx->iaoq_b == -1) { @@ -4887,6 +4889,8 @@ static const TranslatorOps hppa_tr_ops = { .translate_insn = hppa_tr_translate_insn, .tb_stop = hppa_tr_tb_stop, .disas_log = hppa_tr_disas_log, + .ctx_base_offset = offsetof(DisasContext, base), + .ctx_size = sizeof(DisasContext), }; void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)