aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrien Grassein <agrassein@nanoxplore.com>2024-01-18 15:12:12 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2025-03-15 10:34:45 +0000
commit72ff2e2d9f869cd19951ce101e5ac61209ec434d (patch)
treeeb8df78969f4c774937863c50947b06ed60e4cb2 /src
parentbb4c7e323393c74be1cba3836a32f0aa4a9b0dc7 (diff)
downloadriscv-openocd-72ff2e2d9f869cd19951ce101e5ac61209ec434d.zip
riscv-openocd-72ff2e2d9f869cd19951ce101e5ac61209ec434d.tar.gz
riscv-openocd-72ff2e2d9f869cd19951ce101e5ac61209ec434d.tar.bz2
target/armv8: regularly send keep_alive packet.
Flushing all d-cache may be a long operation. We need to send keep_alive regularly to keep the connection alive. If not done a warning is emitted. Change-Id: I52c3ee9a9f9b8a1dc0b8d5439e8b71212f56165a Signed-off-by: Adrien Grassein <agrassein@nanoxplore.com> Signed-off-by: Adrien Charruel <acharruel@nanoxplore.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8659 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r--src/target/armv8_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/armv8_cache.c b/src/target/armv8_cache.c
index 66d4e00..74d063b 100644
--- a/src/target/armv8_cache.c
+++ b/src/target/armv8_cache.c
@@ -61,6 +61,7 @@ static int armv8_cache_d_inner_flush_level(struct armv8_common *armv8, struct ar
goto done;
c_way -= 1;
} while (c_way >= 0);
+ keep_alive();
c_index -= 1;
} while (c_index >= 0);