|
From: | Richard Henderson |
Subject: | Re: [PATCH 07/13] target/riscv: Ajdust vector atomic check with ol |
Date: | Mon, 1 Nov 2021 06:55:57 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 11/1/21 6:01 AM, LIU Zhiwei wrote:
- ((1 << s->sew) <= sizeof(target_ulong)) && + ((1 << s->sew) <= (get_olen(s) / 8)) &&
XLEN not OLEN.But this will also clash with rv128, since we still won't have 128-bit atomics. So I think you need to be more reserved in this change:
/* TODO: RV128 could allow 128-bit atomics */ (get_xl(s) == MXL_RV32 ? 4 : 8) r~
[Prev in Thread] | Current Thread | [Next in Thread] |