Created
October 3, 2024 17:52
-
-
Save cyyself/00483279c38603569b8ee1c710b3e053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Types for recording extension to RISC-V C-API bitmask. */ | |
struct riscv_ext_bitmask_table_t { | |
const char *ext; | |
int groupid; | |
int bit_position; | |
}; | |
static const riscv_ext_bitmask_table_t riscv_ext_bitmask_table[] = | |
{ | |
{"a", 0, 0}, | |
{"c", 0, 2}, | |
{"d", 0, 3}, | |
{"f", 0, 5}, | |
{"i", 0, 8}, | |
{"m", 0, 12}, | |
{"v", 0, 21}, | |
{"zacas", 0, 26}, | |
{"zba", 0, 27}, | |
{"zbb", 0, 28}, | |
{"zbc", 0, 29}, | |
{"zbkb", 0, 30}, | |
{"zbkc", 0, 31}, | |
{"zbkx", 0, 32}, | |
{"zbs", 0, 33}, | |
{"zfa", 0, 34}, | |
{"zfh", 0, 35}, | |
{"zfhmin", 0, 36}, | |
{"zicboz", 0, 37}, | |
{"zicond", 0, 38}, | |
{"zihintntl", 0, 39}, | |
{"zihintpause", 0, 40}, | |
{"zknd", 0, 41}, | |
{"zkne", 0, 42}, | |
{"zknh", 0, 43}, | |
{"zksed", 0, 44}, | |
{"zksh", 0, 45}, | |
{"zkt", 0, 46}, | |
{"ztso", 0, 47}, | |
{"zvbb", 0, 48}, | |
{"zvbc", 0, 49}, | |
{"zvfh", 0, 50}, | |
{"zvfhmin", 0, 51}, | |
{"zvkb", 0, 52}, | |
{"zvkg", 0, 53}, | |
{"zvkned", 0, 54}, | |
{"zvknha", 0, 55}, | |
{"zvknhb", 0, 56}, | |
{"zvksed", 0, 57}, | |
{"zvksh", 0, 58}, | |
{"zvkt", 0, 59}, | |
{"zve32x", 0, 60}, | |
{"zve32f", 0, 61}, | |
{"zve64x", 0, 62}, | |
{"zve64f", 0, 63}, | |
{"zve64d", 1, 0}, | |
{"zimop", 1, 1}, | |
{"zca", 1, 2}, | |
{"zcb", 1, 3}, | |
{"zcd", 1, 4}, | |
{"zcf", 1, 5}, | |
{"zcmop", 1, 6}, | |
{"zawra", 1, 7}, | |
{NULL, -1, -1} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment