From patchwork Sun Dec 14 05:58:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 420830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 8F3D1140082 for ; Sun, 14 Dec 2014 16:59:40 +1100 (AEDT) Received: from localhost ([::1]:35110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y02DS-0002i0-Sf for incoming@patchwork.ozlabs.org; Sun, 14 Dec 2014 00:59:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y02Cw-0001xX-9t for qemu-devel@nongnu.org; Sun, 14 Dec 2014 00:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y02Ci-0008A7-Ob for qemu-devel@nongnu.org; Sun, 14 Dec 2014 00:59:06 -0500 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:64380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y02Ci-00089z-Gs for qemu-devel@nongnu.org; Sun, 14 Dec 2014 00:58:52 -0500 Received: by mail-la0-f44.google.com with SMTP id gd6so7994430lab.31 for ; Sat, 13 Dec 2014 21:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CwihST+H1wr/ssCYyzkyJSgqHJWOFXbeFk/5rsmYRpo=; b=Mp2TtPNvxRpuT1TkBVRVr3vj06ViG9rKwk7LGpgPtcmktlEu1VRxeyiKclTuWwSx/Q vpIv8bVswcFg8M9p6qUJQ6nPwTsIVsHWYj+KXYWwrT+cshMJCSF1drUL2IbWPKZRTI0d W2Ur8AvdRql7CpaNYHoRPpA1pYT5LmZ9OtKAYyL1Kc+M0IaRevuJczHOt6w9QH6u97wc ibNKpmS9x3ov97FdsagOMBm9/YmW6QUhUouEjIYafAoWPzDqpyFDghzYyLnjona7I14b 9bmh9umapLi0MEY4hc/NytW0/+UX/1C0hj0RnXzN9OTj7zaORYK7tdzW8v2z3sG5genW 0V2g== X-Received: by 10.152.238.1 with SMTP id vg1mr23996004lac.83.1418536731682; Sat, 13 Dec 2014 21:58:51 -0800 (PST) Received: from octofox.metropolis ([5.19.183.212]) by mx.google.com with ESMTPSA id vr7sm1670832lbb.21.2014.12.13.21.58.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Dec 2014 21:58:50 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Sun, 14 Dec 2014 08:58:40 +0300 Message-Id: <1418536720-28070-3-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1418536720-28070-1-git-send-email-jcmvbkbc@gmail.com> References: <1418536720-28070-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c Cc: Max Filippov Subject: [Qemu-devel] [PATCH 2/2] target-xtensa: test cross-page opcode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Alter cross-page TB test to also test cross-page opcode. Signed-off-by: Max Filippov --- tests/tcg/xtensa/test_mmu.S | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/tcg/xtensa/test_mmu.S b/tests/tcg/xtensa/test_mmu.S index 58c5bca..a15316f 100644 --- a/tests/tcg/xtensa/test_mmu.S +++ b/tests/tcg/xtensa/test_mmu.S @@ -641,7 +641,7 @@ test cross_page_tb witlb a2, a3 wdtlb a2, a3 - movi a2, 0x00007ffd + movi a2, 0x00007ffc movi a3, 20f movi a4, 21f sub a4, a4, a3 @@ -651,7 +651,7 @@ test cross_page_tb addi a2, a2, 1 addi a3, a3, 1 1: - movi a2, 0x00007ffd + movi a2, 0x00007ffc movi a3, 0x00008000 /* DTLB: OK, ITLB: OK */ jx a2 @@ -668,10 +668,10 @@ test cross_page_tb movi a3, 1 assert eq, a2, a3 rsr a2, epc1 - movi a3, 0x8000 + movi a3, 0x7fff assert eq, a2, a3 rsr a2, excsave1 - movi a3, 0x00007ffd + movi a3, 0x00007ffc assert ne, a2, a3 reset_ps @@ -680,7 +680,7 @@ test cross_page_tb movi a2, 0x0400000c /* PPN */ movi a3, 0x00008000 /* VPN */ wdtlb a2, a3 - movi a2, 0x00007ffd + movi a2, 0x00007ffc movi a3, 0x00008000 /* DTLB: FAIL, ITLB: OK */ jx a2 @@ -689,10 +689,10 @@ test cross_page_tb movi a3, 28 assert eq, a2, a3 rsr a2, epc1 - movi a3, 0x7ffd + movi a3, 0x7ffc assert eq, a2, a3 rsr a2, excsave1 - movi a3, 0x00007ffd + movi a3, 0x00007ffc assert eq, a2, a3 reset_ps @@ -703,7 +703,7 @@ test cross_page_tb witlb a2, a3 movi a2, 0x04000003 /* PPN */ wdtlb a2, a3 - movi a2, 0x00007ffd + movi a2, 0x00007ffc movi a3, 0x00008000 /* DTLB: OK, ITLB: FAIL */ jx a2 @@ -712,10 +712,10 @@ test cross_page_tb movi a3, 20 assert eq, a2, a3 rsr a2, epc1 - movi a3, 0x8000 + movi a3, 0x7fff assert eq, a2, a3 rsr a2, excsave1 - movi a3, 0x00007ffd + movi a3, 0x00007ffc assert ne, a2, a3 reset_ps @@ -724,7 +724,7 @@ test cross_page_tb movi a2, 0x0400000c /* PPN */ movi a3, 0x00008000 /* VPN */ wdtlb a2, a3 - movi a2, 0x00007ffd + movi a2, 0x00007ffc movi a3, 0x00008000 /* DTLB: FAIL, ITLB: FAIL */ jx a2 @@ -733,10 +733,10 @@ test cross_page_tb movi a3, 28 assert eq, a2, a3 rsr a2, epc1 - movi a3, 0x7ffd + movi a3, 0x7ffc assert eq, a2, a3 rsr a2, excsave1 - movi a3, 0x00007ffd + movi a3, 0x00007ffc assert eq, a2, a3 test_end