aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-12-04 12:22:49 -0800
committerGitHub <noreply@github.com>2019-12-04 12:22:49 -0800
commit50d0c2f67c1c32cb58d0a28f88e49e15623dcdc7 (patch)
treeeb22cb529b6b06f4b3c04f85c3dc5604fdb287db
parente03dd199e05923abda2dbc86ebc97d92531ef294 (diff)
downloadriscv-openocd-50d0c2f67c1c32cb58d0a28f88e49e15623dcdc7.zip
riscv-openocd-50d0c2f67c1c32cb58d0a28f88e49e15623dcdc7.tar.gz
riscv-openocd-50d0c2f67c1c32cb58d0a28f88e49e15623dcdc7.tar.bz2
Warn about using `-rtos riscv`. (#430)
Change-Id: I7fc5dc0ebe91497ffdefe480a409dc0feacfb49f
-rw-r--r--src/rtos/riscv_debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c
index 726f326..f14a62d 100644
--- a/src/rtos/riscv_debug.c
+++ b/src/rtos/riscv_debug.c
@@ -21,6 +21,13 @@ static bool riscv_detect_rtos(struct target *target)
static int riscv_create_rtos(struct target *target)
{
LOG_DEBUG("RISC-V Debug 'RTOS' created: this doesn't mean you're running an RTOS, just that you have multi-hart support on RISC-V");
+ LOG_WARNING("`-rtos riscv` is deprecated! Please change your configuration to use `-rtos");
+ LOG_WARNING("hwthread` instead. To do that, you will have to explicitly list every hart in");
+ LOG_WARNING("the system as a separate target. See");
+ LOG_WARNING("https://github.com/riscv/riscv-tests/blob/ec6537fc4a527ca88be2f045e01c460e640ab9c5/debug/targets/SiFive/HiFiveUnleashed.cfg#L11");
+ LOG_WARNING("for an example.");
+ LOG_WARNING("You will have to change your configuration file in any OpenOCD newer than June");
+ LOG_WARNING("2020.");
struct riscv_rtos *r = calloc(1, sizeof(*r));
target->rtos->rtos_specific_params = r;