From patchwork Thu Apr 19 11:21:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 900792 Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uNatSTa2"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40Rc9V6tKNz9s1l for ; Thu, 19 Apr 2018 21:25:34 +1000 (AEST) Received: from localhost ([::1]:39919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f97gy-0000VZ-Ie for incoming@patchwork.ozlabs.org; Thu, 19 Apr 2018 07:25:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f97dE-0006Kq-NR for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f97dC-00087q-VY for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:40 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:38109) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f97dC-000866-Nj for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:38 -0400 Received: by mail-lf0-x241.google.com with SMTP id z130-v6so261154lff.5 for ; Thu, 19 Apr 2018 04:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=E9x7LMluqRMdlDbLWt+Ktfq/D94SZo6hzUcalKdiRhs=; b=uNatSTa2Tw4HqDewomRWTbVys2z4g3rIuAsIKPrvdBKZslg4irho4xLt/qozrWWPTn Xcu4Tp5FKExW1L7tE2kKBvMTYZdcouwOGDy2NaxZTt5wI2F4KGl64nDF6NndpjQK/m7K Zi/lWbP17U+2D+yfgZUbhsJjSi7WQAeRu+iLRLlhUeh3nfkIPx+wM/TYW9P56dkM//lA 90DBOhJgP16UYloywsucVPWaVqS1VxkR67M2b5gP1HZLidXH2k+6Q29Ri0tYqdqV64n1 SzaVP9Q4UTOoObH7iir+ju1u+aRABoAVCmIsSBrd2fdzUmFUhUmoXlkhNoe/lXx6QpaI R35Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=E9x7LMluqRMdlDbLWt+Ktfq/D94SZo6hzUcalKdiRhs=; b=ecZdMca7OgrtiJwwMMui1Cso4m23w80Oi2jATz6uLl8834jm4e/t46jS8EWIt4dqjJ nKGKOLVSgueP7sfMnMVfSkhFGPBELkfeWopyxReMGwE4BXdbaoj5UYChBrLhkocKlvZV 0onDCFZYfLGNRy05n8CFqQgAA68g/+6lyFmDyupcSdRWvxkXf1oIaSel954VB0oOGr7Z qx7okrKcTGWVQ3KHbmAbwwSh21E7s/HZGNy6SRFkuhqxMFh6AYNWtjo0xwMLwu6O5jjd SU4eogNlT8eq8dZl/Ogla7G2/znC20TOq5bfVcDGY/n1Ma4Ya4AWs/NHPYMbmEpBlF5l DFcg== X-Gm-Message-State: ALQs6tAMib6bqFV1Py8cBkbHS9RD8HWPyb9M3ULK1J4C0d0bQP7yrCyn HoqSzwi9J/B6lpUxR4yOpRVwVA== X-Google-Smtp-Source: AIpwx4/zPt6qaM/J2vyCDO0Yeoj6dRZwWlIVeTUIYoqSCDs5MO8Mb0gYeyVnaTuB8i7hcWB5QrDlLw== X-Received: by 10.46.153.206 with SMTP id l14mr3883585ljj.87.1524136897239; Thu, 19 Apr 2018 04:21:37 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id b75-v6sm692141lfe.95.2018.04.19.04.21.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Apr 2018 04:21:36 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 19 Apr 2018 13:21:29 +0200 Message-Id: <20180419112131.16932-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180419112131.16932-1-edgar.iglesias@gmail.com> References: <20180419112131.16932-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::241 Subject: [Qemu-devel] [PATCH v1 3/5] target-microblaze: Don't clobber the IMM reg for ld/st reversed 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: sai.pavan.boddu@xilinx.com, peter.maydell@linaro.org, alistair@alistair23.me, edgar.iglesias@xilinx.com, frasse.iglesias@gmail.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Do not clobber the IMM register on reversed load/stores. Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 5f9efcdd11..9dcbdf5509 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -946,7 +946,6 @@ static void dec_load(DisasContext *dc) tcg_gen_sub_tl(low, tcg_const_tl(3), low); tcg_gen_andi_tl(t, t, ~3); tcg_gen_or_tl(t, t, low); - tcg_gen_mov_tl(env_imm, t); tcg_temp_free(low); break; } @@ -1098,7 +1097,6 @@ static void dec_store(DisasContext *dc) tcg_gen_sub_tl(low, tcg_const_tl(3), low); tcg_gen_andi_tl(t, t, ~3); tcg_gen_or_tl(t, t, low); - tcg_gen_mov_tl(env_imm, t); tcg_temp_free(low); break; }