-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riscv_read_by_any_size()
is redundant
#1205
Comments
Actually, the functions
|
But the issue is
Moreover, they are used throughout
Finally, I don't get why the function can't do both: try multiple access sizes to be able to read any memory and try the largest size first to achieve the best possible performance. |
Somewhat related to #1184. |
riscv_read_by_any_size()
is used to try all available sizes when reading memory:riscv-openocd/src/target/riscv/riscv.c
Lines 1392 to 1397 in eb9ba21
riscv_read_by_any_size()
is currently used inriscv_semihosting()
and inriscv_add_breakpoint()
to read instructions.There is also
target_read_buffer()
. It provides the same interface.Seems like
riscv_read_by_any_size()
should be the implementation oftarget_read_buffer()
(currentlytarget_read_buffer_default()
is used).The text was updated successfully, but these errors were encountered: