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
Assuming a system with a 32-bit and a 64-bit core accessing the debug module over a 64-bit wide bus (BusWidth=64 in the debug module). In that case we maybe don't signal an error (cmderr) correctly when trying to to access a GPR register (dbg spec 3.6.1.1) of the 32-bit core correctly, since MaxAar that is reponsible for checking for accesses larger than XLEN of the core is set by BusWidth. See https://github.com/pulp-platform/riscv-dbg/blob/master/src/dm_mem.sv#L63
On the other hand it could be argued, that when requesting to access a GPR of the 32-bit core, the core will execute a 64-bit load/store operation that will trigger an illegal instruction exception, setting cmderr that way. cmderr for exceptions has the error code 3, which might not fit as well as error code 2 (meaning not supported operation), but there is no section that states what exact error has to be raised.
The text was updated successfully, but these errors were encountered:
Assuming a system with a 32-bit and a 64-bit core accessing the debug module over a 64-bit wide bus (
BusWidth=64
in the debug module). In that case we maybe don't signal an error (cmderr
) correctly when trying to to access a GPR register (dbg spec 3.6.1.1) of the 32-bit core correctly, sinceMaxAar
that is reponsible for checking for accesses larger than XLEN of the core is set byBusWidth
. See https://github.com/pulp-platform/riscv-dbg/blob/master/src/dm_mem.sv#L63On the other hand it could be argued, that when requesting to access a GPR of the 32-bit core, the core will execute a 64-bit load/store operation that will trigger an illegal instruction exception, setting
cmderr
that way.cmderr
for exceptions has the error code3
, which might not fit as well as error code2
(meaning not supported operation), but there is no section that states what exact error has to be raised.The text was updated successfully, but these errors were encountered: