From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: "Edgar E. Iglesias" Date: Thu, 19 Apr 2018 13:21:29 +0200 Message-Id: <20180419112131.16932-4-edgar.iglesias@gmail.com> In-Reply-To: <20180419112131.16932-1-edgar.iglesias@gmail.com> References: <20180419112131.16932-1-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v1 3/5] target-microblaze: Don't clobber the IMM reg for ld/st reversed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, sai.pavan.boddu@xilinx.com, alistair@alistair23.me, frasse.iglesias@gmail.com, edgar.iglesias@xilinx.com 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; } -- 2.14.1