[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] target/arm: Fixup special cross page case for sve continuous
From: |
LIU Zhiwei |
Subject: |
[PATCH 1/4] target/arm: Fixup special cross page case for sve continuous load/store |
Date: |
Mon, 7 Dec 2020 12:46:52 +0800 |
If the split element is also the first active element of the vector,
mem_off_first[0] should equal to mem_off_split.
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
---
target/arm/sve_helper.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c
index 5f037c3a8f..91d1d24725 100644
--- a/target/arm/sve_helper.c
+++ b/target/arm/sve_helper.c
@@ -4282,9 +4282,10 @@ static bool sve_cont_ldst_pages(SVEContLdSt *info,
SVEContFault fault,
* to generate faults for the second page. For no-fault,
* we have work only if the second page is valid.
*/
- if (info->mem_off_first[0] < info->mem_off_split) {
- nofault = FAULT_FIRST;
- have_work = false;
+ if (info->mem_off_first[0] == info->mem_off_split) {
+ if (nofault) {
+ have_work = false;
+ }
}
} else {
/*
--
2.23.0