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
When DMI access is requested by the RISC-V target, the JTAG DTM implementation in OpenOCD (batch.c) shall check that the address of the access is not wider than dtmcs.abits, otherwise an error should be printed. Currently such a check is missing, and the address gets silently truncated.
Possible implementation:
Rework the contents of struct riscv_batch to store the DMI items (address, data, operation), not the raw JTAG scans.
In riscv_batch_run_from(), perform the validation of the DMI addresses.
Only if successful, create the actual raw JTAG scans and send them for execution to the adapter driver.
The text was updated successfully, but these errors were encountered:
Discovered during the implementation of #1202:
When DMI access is requested by the RISC-V target, the JTAG DTM implementation in OpenOCD (batch.c) shall check that the address of the access is not wider than
dtmcs.abits
, otherwise an error should be printed. Currently such a check is missing, and the address gets silently truncated.Possible implementation:
struct riscv_batch
to store the DMI items (address, data, operation), not the raw JTAG scans.riscv_batch_run_from()
, perform the validation of the DMI addresses.The text was updated successfully, but these errors were encountered: