Message ID | 20181025172057.20414-34-cota@braap.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 C9D5517F3 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 25 Oct 2018 17:40:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA4642C28D for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 25 Oct 2018 17:40:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AED8E2C29D; Thu, 25 Oct 2018 17:40:11 +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 632032C28D for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 25 Oct 2018 17:40:11 +0000 (UTC) Received: from localhost ([::1]:56107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1gFjcA-0007zR-My for patchwork-qemu-devel@patchwork.kernel.org; Thu, 25 Oct 2018 13:40:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1gFjKi-0006h0-SW 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 <cota@braap.org>) id 1gFjKX-0000Ih-Td for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:21:59 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39503) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1gFjKU-00008b-AW for qemu-devel@nongnu.org; Thu, 25 Oct 2018 13:21:56 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C7BC0221F0; 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 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=Glw9hWjrgcyz5ShDqD0rAzNcCeB3f35Bwo88MCFIC7g=; b=qv6ML WBQL2AQuWUkZOFx5HuUDBWkL0QhAdvRPIPuX57J5ax4Hjkyc7OGBBclYdFmBKQDF e/KVeIrtuYQM42hegUOpsRHdKD5XHR66rZR1az9zj/AoQrhiEsbqlSlnCzoQ9n4u AOJUe5E+rElQ/AAE80BuTme3hkvxNBxdg7LHgI= 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=Glw9hWjrgcyz5ShDqD0rAzNcCeB3f 35Bwo88MCFIC7g=; b=uiTaInV7sZ+koguM5Zd3nl1YmpTgWP+FKx7GQdLz4c4uw bQKyWUfVhQH1odFThBjZat0ynQlbjy0TPGLuixAPUdmpJBd7puGu3PwdYA3A2TC8 0uaRXOEjbpFjfc+Rfj9+jXehrqAA1rbl52TDJOv3JVH4ngXt12YT5t5q7PCqqD2n InLYp2M3Cc+KgvG3wU0hbcjUCtd/RVHAv4O3SJbV8nLaowE+jPktsKd8ofQhYdLi c3vHrdI7Nx+L3pVb8hd4v+Q2N5cJfkneQRsRvVlwnlZqhkhbptnmtJY1EGKyNPRK 5DKoOyn3x7x6iMC4URudjUy+2tX1pU7kX6Aca+tig== X-ME-Sender: <xms:ivvRW7OsT5PbAmFYK-tcb8D1e2YEWnwQbq4wZGsZ7kN0Tlzx2J-_Yw> X-ME-Proxy: <xmx:ivvRW2i6T6bgYuY7D5YyTy-l3q2At0Xbh_oW5jLAyRZBQRkOdevUmg> <xmx:ivvRW0mqj2S_UMv4IfJFKDJ3918oDm8gJn2bVZS2qPkMMMxD0P4LOw> <xmx:ivvRW0iFJLyvZ7wiNivq1Se7FfctYXQSXjAz4_F3DPBSMlxgp-1mkg> <xmx:ivvRWw1EYIEkzYr18I9hG4WH38gbGE0aqKUpCGCOQyQ33t9rFMQPFg> <xmx:ivvRW1IHauchWikRoAN9As9q5wbgZ0_iULEKugEtZNxhhaXZD3Ja1g> <xmx:ivvRW3k1MPqA92kRJoxqW9huyOSBd6gg3llV8o9OiN1uQzQkezQp2g> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 51831E47CB; Thu, 25 Oct 2018 13:21:14 -0400 (EDT) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2018 13:20:42 -0400 Message-Id: <20181025172057.20414-34-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 33/48] target/riscv: prepare for 2-pass translation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, =?utf-8?q?Llu=C3=ADs?= =?utf-8?q?_Vilanova?= <vilanova@ac.upc.edu>, Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>, Stefan Hajnoczi <stefanha@gmail.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Plugin support
|
expand
|
diff --git a/target/riscv/translate.c b/target/riscv/translate.c index a33cf6802b..6f5be8e7d7 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -1851,6 +1851,7 @@ static void riscv_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu, ctx->opcode = cpu_ldl_code(env, ctx->base.pc_next); decode_opc(env, ctx); + qemu_plugin_insn_append(plugin_insn, &ctx->opcode, sizeof(ctx->opcode)); ctx->base.pc_next = ctx->pc_succ_insn; if (ctx->base.is_jmp == DISAS_NEXT) { @@ -1892,6 +1893,8 @@ static const TranslatorOps riscv_tr_ops = { .translate_insn = riscv_tr_translate_insn, .tb_stop = riscv_tr_tb_stop, .disas_log = riscv_tr_disas_log, + .ctx_base_offset = offsetof(DisasContext, base), + .ctx_size = sizeof(DisasContext), }; void gen_intermediate_code(CPUState *cs, TranslationBlock *tb)
Signed-off-by: Emilio G. Cota <cota@braap.org> --- target/riscv/translate.c | 3 +++ 1 file changed, 3 insertions(+)