qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/4] RISC-V: configure and turn on vector extension from c


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 2020/1/7 5:48, Jim Wilson wrote:
On 1/2/20 7:33 PM, LIU Zhiwei wrote:
+            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."
 
Thanks. It's good to reduce ambiguous.
Zhiwei
The other errors here are for architecture requirements and are OK.

Jim


reply via email to

[Prev in Thread] Current Thread [Next in Thread]