From nobody Thu Nov 6 10:38:55 2025 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.zohomail.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 1540488853746410.09209590760724; Thu, 25 Oct 2018 10:34:13 -0700 (PDT) Received: from localhost ([::1]:56074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjWO-00014m-Iq for importer@patchew.org; Thu, 25 Oct 2018 13:34:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjKg-0006hk-1q 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 1gFjKb-0000M7-Pl for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:03 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:57139) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFjKa-00008h-Gh for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:22:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6F4962221B; Thu, 25 Oct 2018 13:21:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 25 Oct 2018 13:21:14 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 17187E4074; Thu, 25 Oct 2018 13:21:14 -0400 (EDT) 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=iV5MmvAiJOQkbMJAsRroULDFZEbx7XE8kXmiYV+YBeo=; b=Ff29L s97HwQrW1DJNEqfkc1kuT6kL3OkUymvP5Fk1tnIkc3EEQjGgAy0TwqacXYTKjZQr 79Jaaph8oLvavIJWa3jBFdhgpD7l9tqn4AQM0JnacNQsiux744t0Gn+nJkMH66K3 7xU56ophymqf7KzJi13ZcRB3AaAtC1llM9KhFw= 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=iV5MmvAiJOQkbMJAsRroULDFZEbx7 XE8kXmiYV+YBeo=; b=cotNPMsw6+hD/3k7oTAY0MMQ77P2wpT66ILpvj3FyYL9C +Enr57hRvDQO9yTvM+Hqs8UQ1KHzQpPn0aPIThkqa/SsNBokxZW361O2v76GG4ZV g8xj54S47yR0oRZL3mGXQHHQGVS++8cimWxKddSMwaVZT7ut5W8pXs9EO5nEK4Ta s6Vv0UVXuc3UIbVWxkTgM8HKVwcERLiYkWmtunmndMm7oZR1Hb+vhSAFsXg6O/PK JENGLbVgGqLAFRYUwP5A2dduG2oozX2ZsxQpGHEM/ijmFg5UfAtq2BzkHtQa9yHX xBe6uKl1ASCzvSBS+1jOxZVh0CRSfgYyQE8po5gXA== X-ME-Sender: X-ME-Proxy: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2018 13:20:41 -0400 Message-Id: <20181025172057.20414-33-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 32/48] target/alpha: 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=20Benn=C3=A9e?= , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= , Pavel Dovgalyuk , Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Emilio G. Cota --- target/alpha/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 72a302e102..21405df2b8 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -2990,6 +2990,7 @@ static void alpha_tr_translate_insn(DisasContextBase = *dcbase, CPUState *cpu, CPUAlphaState *env =3D cpu->env_ptr; uint32_t insn =3D cpu_ldl_code(env, ctx->base.pc_next); =20 + qemu_plugin_insn_append(plugin_insn, &insn, sizeof(insn)); ctx->base.pc_next +=3D 4; ctx->base.is_jmp =3D translate_one(ctx, insn); =20 @@ -3046,6 +3047,8 @@ static const TranslatorOps alpha_tr_ops =3D { .translate_insn =3D alpha_tr_translate_insn, .tb_stop =3D alpha_tr_tb_stop, .disas_log =3D alpha_tr_disas_log, + .ctx_base_offset =3D offsetof(DisasContext, base), + .ctx_size =3D sizeof(DisasContext), }; =20 void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb) --=20 2.17.1