Fix incorrect braces caused by #732

This commit is contained in:
Dmitry Ryzhov 2022-10-07 16:34:59 +03:00
parent b411a955c8
commit 01ae0f2122
1 changed files with 2 additions and 2 deletions

View File

@ -1340,11 +1340,11 @@ static int register_write_direct(struct target *target, unsigned number,
if (number >= GDB_REGNO_FPR0 && number <= GDB_REGNO_FPR31) {
if (riscv_supports_extension(target, 'D')) {
if (riscv_program_insert(&program,
fmv_d_x(number - GDB_REGNO_FPR0, S0) != ERROR_OK))
fmv_d_x(number - GDB_REGNO_FPR0, S0)) != ERROR_OK)
return ERROR_FAIL;
} else {
if (riscv_program_insert(&program,
fmv_w_x(number - GDB_REGNO_FPR0, S0) != ERROR_OK))
fmv_w_x(number - GDB_REGNO_FPR0, S0)) != ERROR_OK)
return ERROR_FAIL;
}
} else if (number == GDB_REGNO_VTYPE) {