From e96f4b1b0621b9bb61f656c096b1e33b98f0e774 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 11 Feb 2019 14:04:21 -0800 Subject: [PATCH] Fix old cut and paste bug. Change-Id: Id06fb98ed3dd1b3987e4eafa0ec271c1cd77fef6 --- src/target/riscv/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index eacf59894..e027d0035 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1013,7 +1013,7 @@ static int riscv_run_algorithm(struct target *target, int num_mem_params, uint64_t saved_regs[32]; for (int i = 0; i < num_reg_params; i++) { - if (mem_params[i].direction == PARAM_IN) + if (reg_params[i].direction == PARAM_IN) continue; LOG_DEBUG("save %s", reg_params[i].reg_name);