qemu-riscv
[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: Jim Wilson
Subject: Re: [PATCH v3 2/4] RISC-V: configure and turn on vector extension from command line
Date: Mon, 6 Jan 2020 13:48:47 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

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."

The other errors here are for architecture requirements and are OK.

Jim



reply via email to

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