Fix flash/run algorithm with new register names

Change-Id: I8f539c880ee5da864956f56943411b228d8a5812
This commit is contained in:
Tim Newsome
2017-12-21 16:41:50 -08:00
parent fadf2c1b48
commit 1f66c7827b
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -792,8 +792,8 @@ static int steps_execute(struct algorithm_steps *as,
int xlen = riscv_xlen(target);
struct reg_param reg_params[2];
init_reg_param(&reg_params[0], "x10", xlen, PARAM_OUT);
init_reg_param(&reg_params[1], "x11", xlen, PARAM_OUT);
init_reg_param(&reg_params[0], "a0", xlen, PARAM_OUT);
init_reg_param(&reg_params[1], "a1", xlen, PARAM_OUT);
buf_set_u64(reg_params[0].value, 0, xlen, ctrl_base);
buf_set_u64(reg_params[1].value, 0, xlen, data_wa->address);
while (!as_empty(as)) {