<ja_02>
basicaly i cant use the origonal unless i edit /scripts/dtc/libfdt/fdt_ro.c
<ja_02>
and libfdt.h
<conchuod>
I probably just didn't read it properly, that's all I'm saying.
<ja_02>
ok
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<ja_02>
nvm then
prabhakalad has quit [Quit: Konversation terminated!]
hightower2 has quit [Ping timeout: 268 seconds]
Starfoxxes has quit [Remote host closed the connection]
mengzhuo has quit [Ping timeout: 256 seconds]
<ja_02>
conchuod does arch/riscv/kernel/cpufeature.c handle rv64imafdczkr?
<ja_02>
* Before attempting to parse the extension itself, we find its end.
<ja_02>
* As multi-letter extensions must be split from other multi-letter
<ja_02>
* extensions with an "_", the end of a multi-letter extension will
<ja_02>
* either be the null character or the "_" at the start of the next
<ja_02>
* multi-letter extension.
<conchuod>
It should do!
<conchuod>
The rule is that multi-letter extensions are split from other multiletter extensions by a _
<conchuod>
rv64imafdczkr only has one multiletter extension, so the _ isn't required.
<ja_02>
oh
<conchuod>
The parser should only advance one letter at a time, so it should reach the z and realise that there's a multiletter extension there.
<conchuod>
And then that comment is talking about how it finds the end of the extension.
<ja_02>
thx i missunderstood them
<ja_02>
then*
<conchuod>
nw
<conchuod>
You should be able to just dump the contents of riscv_parse_isa_string into godbolt or w/e and fiddle with it there more easily than building and running something
<ja_02>
or tcc the highlighting annoys me
<sorear>
fun questions like "is sv39 an extension or version 39.0 of sv" and "is v0p7p1 version 7.1 of the v0p extension?"
<ja_02>
:(
<conchuod>
sorear: is that even allowed?
<conchuod>
I thought only one p was permitted
<sorear>
excellent question! sources disagree.
<conchuod>
So I think it is actually version 0.7 of the v extension, and then version 1 of the p extension. Except p cannot come after a number, only a letter or a _, so...
<sorear>
if parsing ISA strings weren't hopeless we wouldn't have switched to riscv,isa-extensions
psydroid2 has quit [Remote host closed the connection]
<conchuod>
I should probably patch OpenSBI for that property, I've just been busy and don't usually do any development of OpenSBI so it has continuously slipped.
alexghiti has quit [Ping timeout: 268 seconds]
alexghiti has joined #riscv
mahk has quit [Ping timeout: 260 seconds]
mahk has joined #riscv
alexghiti has quit [Ping timeout: 255 seconds]
alexghiti has joined #riscv
mahk has quit [Changing host]
mahk has joined #riscv
JanC_ has joined #riscv
JanC has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
m5zs7k has quit [Ping timeout: 268 seconds]
m5zs7k has joined #riscv
unnick has quit [Ping timeout: 268 seconds]
alexghiti has quit [Ping timeout: 268 seconds]
Guest92 has joined #riscv
naoki has joined #riscv
DesRoin has quit [Ping timeout: 264 seconds]
DesRoin has joined #riscv
peepsalot has quit [Remote host closed the connection]