Received: from eggs.gnu.org ([2001:4830:134:3::10]:42927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4xvi-0002jh-6p for qemu-devel@nongnu.org; Tue, 16 Jun 2015 16:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4xvd-00041W-Bg for qemu-devel@nongnu.org; Tue, 16 Jun 2015 16:57:58 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:55119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4xvd-00040r-5Z for qemu-devel@nongnu.org; Tue, 16 Jun 2015 16:57:53 -0400 From: Aurelien Jarno Date: Tue, 16 Jun 2015 22:57:47 +0200 Message-Id: <1434488267-32108-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH] target-s390x: fix MOVE LONG instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexander Graf , Aurelien Jarno , Richard Henderson The MOVE LONG instruction should pad the destination operand with the byte from bit positions 32-39 of the source length (r2 + 1), not with the same byte in the source address. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- target-s390x/mem_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-s390x/mem_helper.c b/target-s390x/mem_helper.c index 3ccbeb9..9f0eb1e 100644 --- a/target-s390x/mem_helper.c +++ b/target-s390x/mem_helper.c @@ -550,7 +550,7 @@ uint32_t HELPER(mvcl)(CPUS390XState *env, uint32_t r1, uint32_t r2) uint64_t dest = get_address_31fix(env, r1); uint64_t srclen = env->regs[r2 + 1] & 0xffffff; uint64_t src = get_address_31fix(env, r2); - uint8_t pad = src >> 24; + uint8_t pad = env->regs[r2 + 1] >> 24; uint8_t v; uint32_t cc; -- 2.1.4