summaryrefslogtreecommitdiff
path: root/lib/utils/timer/fdt_timer_mtimer.c
diff options
context:
space:
mode:
authorDongdong Zhang <[email protected]>2024-07-18 13:43:57 +0800
committerAnup Patel <[email protected]>2024-08-23 13:36:49 +0530
commitd4322eebd0ce129c3230fd150bc802b19ff0c0f8 (patch)
tree1beba50ee08c03b47c395e8f7fbb44f175c6588a /lib/utils/timer/fdt_timer_mtimer.c
parentb9c091ed890224dc83a152d897965c7a332c1504 (diff)
lib: sbi: Enhance CSR Handling in system_opcode_insn
- Completed TODO in `system_opcode_insn` to ensure CSR read/write instruction handling. - Refactored to use new macros `GET_RS1_NUM` and `GET_CSR_NUM`. - Updated `GET_RM` macro and replaced hardcoded funct3 values with constants (`CSRRW`, `CSRRS`, `CSRRC`, etc.). - Removed redundant `GET_RM` from `riscv_fp.h`. - Improved validation and error handling for CSR instructions. This patch enhances the clarity and correctness of CSR handling in `system_opcode_insn`. Signed-off-by: Dongdong Zhang <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/fdt_timer_mtimer.c')
0 files changed, 0 insertions, 0 deletions