|
From: | Richard Henderson |
Subject: | Re: [PATCH v5 1/9] target/arm: Fix mte_checkN |
Date: | Mon, 19 Apr 2021 10:39:25 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/19/21 9:26 AM, Peter Maydell wrote:
@@ -779,29 +779,27 @@ uint64_t mte_checkN(CPUARMState *env, uint32_t desc, mmu_idx = FIELD_EX32(desc, MTEDESC, MIDX); type = FIELD_EX32(desc, MTEDESC, WRITE) ? MMU_DATA_STORE : MMU_DATA_LOAD; - esize = FIELD_EX32(desc, MTEDESC, ESIZE); total = FIELD_EX32(desc, MTEDESC, TSIZE); /* Find the addr of the end of the access, and of the last element. */ - ptr_end = ptr + total; - ptr_last = ptr_end - esize; + ptr_last = ptr + total - 1;Code change means the comment needs updating, since we're no longer finding two things. Change to just /* Find the addr of the end of the access */ ?
Yep, good catch. r~
[Prev in Thread] | Current Thread | [Next in Thread] |