Hacker News new | ask | show | jobs
by rwmj 1255 days ago
The link in the GP comment is wrong - both SoCs have 4 cores, each with a single thread.

The reason why this SoC is faster than HiFive Unmatched seems to be down to architectural improvements.

2 comments

They both use U74, but different versions.

The one in JH7110 is the 2021Q1 version, AIUI.

Besides faster, it also added B extension.

No. VisionFive2's RISC-V CPU does not have the B extension. I confirmed it on the actual device.

$ cat /proc/cpuinfo processor : 0 hart : 2 isa : rv64imafdc mmu : sv39 uarch : sifive,u74-mc

As you say this, I realize I can't find anywhere that it does.

I do not know why I thought it did. Possibly as U74-MC[0] supports that option.

Interestingly, I also took a look at RVA22[1], and found it requires Zbb but not the whole B.

Your /proc/cpuinfo isn't listing Z* extensions. Maybe lscpu output would be more detailed?

0. https://www.sifive.com/cores/u74-mc

1. https://github.com/riscv/riscv-profiles/blob/main/profiles.a...

Oh, I was mistaken. I've verified that at least the rev instruction works (tested on clang -march=rv64imafdcb0p94).
It is quite possible it implements some B instructions (like the Za or Zb extensions) but not B as a whole.
Got mine.

OpenSBI says:

Boot HART Base ISA : rv64imafdcbx

Ah, makes much more sense. Thanks!