See "ISA Overview" here: https://content.riscv.org/wp-content/uploads/2016/06/riscv-s...
See "ISA Overview" here: https://content.riscv.org/wp-content/uploads/2016/06/riscv-s...
x86 processors also have cpuid
> https://en.wikipedia.org/wiki/CPUID
to signal which extensions are supported or not. In theory it would also be possible to drop deadweight extensions this way for x86, too. The practice shows that at least for the tasks that PCs are used for, one can hardly drop anything here. Exceptions are
- 3Dnow! (is not supported in Bulldozer, Bobcat and Zen anymore; cf. https://en.wikipedia.org/w/index.php?title=3DNow!&oldid=7696...)
- A20 gate (not supported anymore since Haswell: cf. https://en.wikipedia.org/w/index.php?title=A20_line&oldid=78...)
The problem with feature detection is that you can't depend on programs to be well-behaved. For example in Web applications you often see accidental or deliberate assumptions "if we detect X, then Y must also be supported". Often there is a !Y path that has never been tested and therefore doesn't work.