Repository navigation
Add RISCV vector extension - #289
Conversation
| int D : 1; // Standard Extension for Double-Precision Floating-Point | ||
| int Q : 1; // Standard Extension for Quad-Precision Floating-Point | ||
| int C : 1; // Standard Extension for Compressed Instructions | ||
| int V : 1; // Standard Extneions for Vector Instructions |
633dc83 to
05ba4f5
Compare
|
Ok, I've fixed the typo in the comment. |
|
@michael-roe I originally implemented only the ratified extensions from the spec, that's why vector extension is missing. Do you know of any board that currently supports vector extensions? |
|
Yes, I can add a test case. (I was kind of expecting you to ask for one...) The QEMU emulator can emulate V, and there are implementations on FPGA. As far as I know, current boards don't support it (Allwinner D1 is based on an obsolete version of the vector spec), but things are moving fairly quickly. |
|
Last kernel news about it AFAIK proposal in September 2021 November 2022 |
05ba4f5 to
710c3b1
Compare
|
Ok, I've added tests for the V extension. |
| ResetHwcaps(); | ||
| auto& fs = GetEmptyFilesystem(); | ||
| fs.CreateFile("/proc/cpuinfo", R"( |
There was a problem hiding this comment.
could you format these lines?
There was a problem hiding this comment.
Ok, I've fixed the indentation.
710c3b1 to
4b8338c
Compare
|
Is this PR Ok now? (There are a bunch of people who want rto use riscv vector) |
|
Sorry for the lag and thx for the PR! |
|
please notice https://elixir.bootlin.com/linux/latest/source/arch/riscv/include/asm/hwcap.h still does not contain it so we could change this implementation if the kernel want to go in a different way... |
No description provided.