History

lavu/riscv: remove bogus B extension

The B Bit manipulation extension was not defined to this day, and probably never will. Instead it was broken down into Zba, Zbb, Zbc and Zbs with no particular blessed set to make up B. This removes the bogus field test. Linux never set this bit, nor (AFAICT) did FreeBSD or any other OS. We can always add it back in the unlikely event that it gets taken into use.

Rémi Denis-Courmont committed 2 years ago

Commit 20fbc071 parent 9d3f5611 file · +0 −2Browse files

Unified · Split

libavutil/riscv/cpu.c+0−2
@@ -91,8 +91,6 @@ int ff_get_cpu_flags_riscv(void) · 90 unmodified lines
91 ret |= AV_CPU_FLAG_RVF;91 ret |= AV_CPU_FLAG_RVF;
92 if (hwcap & HWCAP_RV('D'))92 if (hwcap & HWCAP_RV('D'))
93 ret |= AV_CPU_FLAG_RVD;93 ret |= AV_CPU_FLAG_RVD;
94 if (hwcap & HWCAP_RV('B'))
95 ret |= AV_CPU_FLAG_RVB_ADDR | AV_CPU_FLAG_RVB_BASIC;
96 94
97 /* The V extension implies all Zve* functional subsets */95 /* The V extension implies all Zve* functional subsets */
98 if (hwcap & HWCAP_RV('V'))96 if (hwcap & HWCAP_RV('V'))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t