You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardware translation requires a program buffer size of at least 4. Can we use a register_write_direct function instead of two instructions csrrsi zero, dcsr, dcsr_mprven and csrrci zero, dcsr, dcsr_mprven ?
@lz-bro, AFAIK dcsr modification can be moved out of program buffer and into modify_privilege().
However, I'd like to ask you to avoid using register_read/write_direct() functions. I believe it's safer to use the standard riscv_reg_get/riscv_reg_set functions -- there is no need to bypass the register cache.
@lz-bro, AFAIK dcsr modification can be moved out of program buffer and into modify_privilege(). However, I'd like to ask you to avoid using register_read/write_direct() functions. I believe it's safer to use the standard riscv_reg_get/riscv_reg_set functions -- there is no need to bypass the register cache.
I found that the register_read/write_direct() was used by modify_privilege(), and even the riscv-013. c
Hardware translation requires a program buffer size of at least 4. Can we use a
register_write_direct
function instead of two instructionscsrrsi zero, dcsr, dcsr_mprven
andcsrrci zero, dcsr, dcsr_mprven
?riscv-openocd/src/target/riscv/riscv-013.c
Lines 2008 to 2013 in f82c5a7
riscv-openocd/src/target/riscv/riscv-013.c
Lines 3120 to 3126 in f82c5a7
riscv-openocd/src/target/riscv/riscv-013.c
Lines 4191 to 4206 in f82c5a7
The text was updated successfully, but these errors were encountered: