aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Massot <julien.massot@iot.bzh>2021-07-13 08:41:20 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2021-07-31 10:10:00 +0100
commit332a1607d9e9b1cca3a855c524dfe44bb51e1306 (patch)
treea854905b3fbfa780d9145ac2a5b8aff390fb2926 /src
parent25d45da40721d4a5413f796628536b88d4e23c3b (diff)
downloadriscv-openocd-332a1607d9e9b1cca3a855c524dfe44bb51e1306.zip
riscv-openocd-332a1607d9e9b1cca3a855c524dfe44bb51e1306.tar.gz
riscv-openocd-332a1607d9e9b1cca3a855c524dfe44bb51e1306.tar.bz2
rtos: zephyr: add zephyr_params for cortex r4
Implementation for Cortex-M does works for Cortex-R too, it allows me to fetch thread list and their backtrace on a Cortex-R platforms. Change-Id: I23e6eb00879587ba36e0bfb560f7002a9653d39b Signed-off-by: Julien Massot <julien.massot@iot.bzh> Reviewed-on: http://openocd.zylin.com/6369 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/rtos/zephyr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rtos/zephyr.c b/src/rtos/zephyr.c
index fc5e037..a596735 100644
--- a/src/rtos/zephyr.c
+++ b/src/rtos/zephyr.c
@@ -341,6 +341,14 @@ static struct zephyr_params zephyr_params_list[] = {
.get_cpu_state = &zephyr_get_arm_state,
},
{
+ .target_name = "cortex_r4",
+ .pointer_width = 4,
+ .callee_saved_stacking = &arm_callee_saved_stacking,
+ .cpu_saved_nofp_stacking = &arm_cpu_saved_nofp_stacking,
+ .cpu_saved_fp_stacking = &arm_cpu_saved_fp_stacking,
+ .get_cpu_state = &zephyr_get_arm_state,
+ },
+ {
.target_name = "hla_target",
.pointer_width = 4,
.callee_saved_stacking = &arm_callee_saved_stacking,