Merge pull request #847 from riscv/data1_cache

target/riscv: Comment that data1 might change.
This commit is contained in:
Tim Newsome 2023-05-18 10:56:00 -07:00 committed by GitHub
commit 461eb65e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);