diff options
author | Burt P <pburt0@gmail.com> | 2017-07-10 17:13:10 -0500 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 |
commit | f141acc5388273fa8819a2510010a13b9131d107 (patch) | |
tree | a16dc98dea66e58d1670a1e86726b7618ff8fbf9 /modules/devices/riscv/riscv_data.h | |
parent | 99c1a9989589e4253ee47d518fe2d76726df2a2b (diff) |
riscv: improve ISA string decoding
* Handle unknown future standard extensions better
* Handle extension version numbers instead of just ignoring them
* Test file riscv_fake_cpuinfo made more tricky
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/riscv/riscv_data.h')
-rw-r--r-- | modules/devices/riscv/riscv_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/devices/riscv/riscv_data.h b/modules/devices/riscv/riscv_data.h index aa5a9480..323c3722 100644 --- a/modules/devices/riscv/riscv_data.h +++ b/modules/devices/riscv/riscv_data.h @@ -21,7 +21,10 @@ #ifndef _RISCVDATA_H_ #define _RISCVDATA_H_ +/* convert RISC-V ISA string to flags list */ char *riscv_isa_to_flags(const char *isa); + +/* get meaning of flag */ const char *riscv_ext_meaning(const char *ext); #endif |