Message ID | 20181209193749.12277-24-cota@braap.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=braap.org header.i=@braap.org header.b="FIwD9/CZ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="obMv0dnN"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43CcCG09Yyz9s4s for <incoming@patchwork.ozlabs.org>; Mon, 10 Dec 2018 06:46:18 +1100 (AEDT) Received: from localhost ([::1]:56430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gW51r-0000Wu-Im for incoming@patchwork.ozlabs.org; Sun, 09 Dec 2018 14:46:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1gW4uF-0001SY-9u for qemu-devel@nongnu.org; Sun, 09 Dec 2018 14:38:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1gW4uD-0005tZ-LL for qemu-devel@nongnu.org; Sun, 09 Dec 2018 14:38:23 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:33191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1gW4uD-00054R-Bp for qemu-devel@nongnu.org; Sun, 09 Dec 2018 14:38:21 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 9707FF63; Sun, 9 Dec 2018 14:38:05 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 09 Dec 2018 14:38:05 -0500 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=yahtcfft+d9bzkEJ6GsWr5vJfvhT41hFJbSrLRULUrU=; b=FIwD9 /CZLX7/xbq67a0N0hTJg9VC3lvp1iPZsijT+z9eJdkSxSTfAqXhnPe2gSUHpqmtc kbUDtJ9uTEgc9gM41ov+f7QA7QSUkuLKbfZpX1h9ugfn7fcx5Zj2IPnsujOnIvmO e0KtG1p0401SiJgTSvL2g/RDWfQ62T5QeyBnAM= 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=yahtcfft+d9bzkEJ6GsWr5vJfvhT4 1hFJbSrLRULUrU=; b=obMv0dnN33Q6InpFCttJ+8EfMbl1PvzsQNaAeA57exBBS 7ONO4FdkdMBjGNG9j+R206vtrHARz/NpVvRLfID80aMTq9UhWEWc8tNMP6DO0rbK RRIgHLm3dw78Goz+kRinY0kJXjLkaawr5p8TAVo4LMkfgkEKOtnLVqoFZO6PE4DL Ey5NkAiLrnghgW8XZsmGZRapGIx7RhOhKkkE7IwoQr6SSEoVS35tbTHdPIk0JGjL Q1ZvcaLBRoG+i4IINq8hO2tI/N6e8VgFINYlA6CQ61TxuRrqkdzyKZDgX073wasL pd1lD3ibikfTLGqCIczdpJSaANHahRdctX135lcHg== X-ME-Sender: <xms:HW8NXNmqjCDtnI0O1dDME6yBny4giVGArhFYRYsIMpe5TOSmyqvVcg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudegfedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkf fojghfsedttdertdertddtnecuhfhrohhmpedfgfhmihhlihhoucfirdcuvehothgrfdcu oegtohhtrgessghrrggrphdrohhrgheqnecukfhppeduvdekrdehledrvddtrddvudeine curfgrrhgrmhepmhgrihhlfhhrohhmpegtohhtrgessghrrggrphdrohhrghenucevlhhu shhtvghrufhiiigvpeej X-ME-Proxy: <xmx:HW8NXFiJY29iVRr88jXfEm9ZJYb2l-X3NfYsDXvliXxHnk0XbdLBpw> <xmx:HW8NXBZL0xXy02Ujh2Z8bz05SPUv3cjkCEG_s8GuOEa1JGh1K9rDnw> <xmx:HW8NXPbjpJP6cO0Ik8Ffnp_XaY_RLmcQyYQNVKVjeh7cBQ-yx_Eh8A> <xmx:HW8NXARROJo1kA6gU5oPTRMyDQG7Vfmo0GDEMmFTUhZmHB2DMQACuQ> <xmx:HW8NXGit8UijCPm3Ab-xAVSI5nVT_keqb7KFIMhVuKu1xkGcyF7dxw> <xmx:HW8NXDQrTgCRXcbkn8lxfJreXojB3OQ-WVX-7aeqiemtxpb1dFww3g> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id E556A102F1; Sun, 9 Dec 2018 14:38:04 -0500 (EST) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Sun, 9 Dec 2018 14:37:34 -0500 Message-Id: <20181209193749.12277-24-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181209193749.12277-1-cota@braap.org> References: <20181209193749.12277-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 Subject: [Qemu-devel] [RFC v2 23/38] target/ppc: fetch code with translator_ld 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: Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= <alex.bennee@linaro.org>, Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
Plugin support
|
expand
|
diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 2d31b5f7a1..7a7c8a9a88 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -7555,11 +7555,9 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) LOG_DISAS("nip=" TARGET_FMT_lx " super=%d ir=%d\n", ctx->base.pc_next, ctx->mem_idx, (int)msr_ir); - if (unlikely(need_byteswap(ctx))) { - ctx->opcode = bswap32(cpu_ldl_code(env, ctx->base.pc_next)); - } else { - ctx->opcode = cpu_ldl_code(env, ctx->base.pc_next); - } + ctx->opcode = translator_ldl_swap(env, ctx->base.pc_next, + need_byteswap(ctx)); + LOG_DISAS("translate opcode %08x (%02x %02x %02x %02x) (%s)\n", ctx->opcode, opc1(ctx->opcode), opc2(ctx->opcode), opc3(ctx->opcode), opc4(ctx->opcode),
Signed-off-by: Emilio G. Cota <cota@braap.org> --- target/ppc/translate.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)