diff options
author | Megan Wachs <megan@sifive.com> | 2018-01-04 13:27:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 13:27:35 -0800 |
commit | 33aad3524bdfb31e155805adf25522fa8955a5f1 (patch) | |
tree | 3eec6e082c5b6b2d889975c807615caf7f4ce225 | |
parent | 82529e71e0e686d11dcf4c505d13d5c6b3da9d73 (diff) | |
download | riscv-openocd-33aad3524bdfb31e155805adf25522fa8955a5f1.zip riscv-openocd-33aad3524bdfb31e155805adf25522fa8955a5f1.tar.gz riscv-openocd-33aad3524bdfb31e155805adf25522fa8955a5f1.tar.bz2 |
Add a comment in dbus_read
This just comments the current behavior
-rw-r--r-- | src/target/riscv/riscv-011.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index 18e31c7..db7622e 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -454,7 +454,12 @@ static uint64_t dbus_read(struct target *target, uint16_t address) uint64_t value; dbus_status_t status; uint16_t address_in; - + + /* If the previous read/write was to the same address, we will get the read data + * from the previous access. + * While somewhat nonintuitive, this is an efficient way to get the data. + */ + unsigned i = 0; do { status = dbus_scan(target, &address_in, &value, DBUS_OP_READ, address, 0); |