|
From: | LIU Zhiwei |
Subject: | Re: [PATCH v3 2/4] RISC-V: configure and turn on vector extension from command line |
Date: | Tue, 7 Jan 2020 09:42:03 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 |
On 1/2/20 7:33 PM, LIU Zhiwei wrote:Thanks. It's good to reduce ambiguous.
+ if (cpu->cfg.vlen > RV_VLEN_MAX) {
+ error_setg(errp,
+ "Vector extension VLEN must <= %d", RV_VLEN_MAX);
+ return;
There is no architectural maximum for VLEN. This is simply an implementation choice so you can use static arrays instead of malloc. I think this error should be reworded to something like "Vector extension implementation only supports VLEN <= %d."
The other errors here are for architecture requirements and are OK.
Jim
[Prev in Thread] | Current Thread | [Next in Thread] |