From fc210e8689226a8eed9d1a9809e2748814a22a0e Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 17 Nov 2022 09:44:11 -0800 Subject: [PATCH] target/riscv: Ignore debug_execution in 0.11 resume It's only used to change what callback events are generated, and there are none anyway. (That's probably a bug, but since 0.11 is so rare I'm not going to worry about it.) Fixes #757. Change-Id: I5b5df3a9bec927fb0368304229533e2875a83f6b Signed-off-by: Tim Newsome --- src/target/riscv/riscv-011.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index d999ab397..2c4a46e46 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -1195,16 +1195,6 @@ static int full_step(struct target *target, bool announce) return ERROR_OK; } -static int resume(struct target *target, int debug_execution, bool step) -{ - if (debug_execution) { - LOG_ERROR("TODO: debug_execution is true"); - return ERROR_FAIL; - } - - return execute_resume(target, step); -} - static uint64_t reg_cache_get(struct target *target, unsigned int number) { struct reg *r = &target->reg_cache->reg_list[number]; @@ -1935,7 +1925,7 @@ static int riscv011_resume(struct target *target, int current, jtag_add_ir_scan(target->tap, &select_dbus, TAP_IDLE); r->prepped = false; - return resume(target, debug_execution, false); + return execute_resume(target, false); } static int assert_reset(struct target *target)