Fixed write_memory_progbuf() on RV64. (#426)
Abstract write size (aarsize) to shall always match the real size of the register. This is because abstract write of smaller size than the register need not be supported per spec (pg. 13 of RISC-V External Debug Support ver. 0.13.2).
This commit is contained in:
parent
de00906ebd
commit
e03dd199e0
|
@ -3232,7 +3232,7 @@ static int write_memory_progbuf(struct target *target, target_addr_t address,
|
|||
/* Write and execute command that moves value into S1 and
|
||||
* executes program buffer. */
|
||||
uint32_t command = access_register_command(target,
|
||||
GDB_REGNO_S1, size > 4 ? 64 : 32,
|
||||
GDB_REGNO_S1, riscv_xlen(target),
|
||||
AC_ACCESS_REGISTER_POSTEXEC |
|
||||
AC_ACCESS_REGISTER_TRANSFER |
|
||||
AC_ACCESS_REGISTER_WRITE);
|
||||
|
|
Loading…
Reference in New Issue