target/riscv: Comment that data1 might change.

In case in the future I have the same idea of optimizing progbuf writes
again.

Change-Id: Ie383487691cceeff75e2c22f4c85fc1fe4873937
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2023-05-17 09:46:23 -07:00
parent e02c83e401
commit be5187d0a8
1 changed files with 4 additions and 0 deletions

View File

@ -3987,6 +3987,10 @@ static int write_memory_progbuf(struct target *target, target_addr_t address,
setup_needed = false;
} else {
/* Note that data1 "might not be preserved after
* an abstract command is executed," so this
* can't be optimized by only writing data1 when
* it has changed. */
if (size > 4)
riscv_batch_add_dmi_write(batch, DM_DATA1, value >> 32, false);
riscv_batch_add_dmi_write(batch, DM_DATA0, value, false);