Skip to content

Commit

Permalink
xtensa: Fix comparison result for up_fpucmp function
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Henrique Nihei <[email protected]>
  • Loading branch information
gustavonihei authored and pull[bot] committed Jul 4, 2023
1 parent e120653 commit e1a0000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/src/common/xtensa_fpucmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ bool up_fpucmp(const void *saveregs1, const void *saveregs2)
const uint32_t *regs2 = saveregs2;

return memcmp(&regs1[XCPTCONTEXT_REGS], &regs2[XCPTCONTEXT_REGS],
XTENSA_CP_SA_SIZE);
XTENSA_CP_SA_SIZE) == 0;
}
#endif /* CONFIG_ARCH_FPU */

0 comments on commit e1a0000

Please sign in to comment.