diff options
| author | Dongdong Zhang <[email protected]> | 2024-07-18 13:43:57 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-08-23 13:36:49 +0530 |
| commit | d4322eebd0ce129c3230fd150bc802b19ff0c0f8 (patch) | |
| tree | 1beba50ee08c03b47c395e8f7fbb44f175c6588a /lib/utils/timer/fdt_timer_mtimer.c | |
| parent | b9c091ed890224dc83a152d897965c7a332c1504 (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
