Merge pull request #745 from dmitryryzhov/fix-braces

Fix incorrect braces caused by #732
This commit is contained in:
Tim Newsome 2022-10-10 09:51:12 -07:00 committed by GitHub
commit 51aa8053e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {