Skip to content

Commit

Permalink
risc-v/64ilp32: revise up_fpucmp
Browse files Browse the repository at this point in the history
This revises `up_fpucmp()` to support rv64ilp32 ABI.

Signed-off-by: Yanfeng Liu <[email protected]>
  • Loading branch information
yf13 committed Jun 21, 2024
1 parent 769e65e commit 9976e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/risc-v/src/common/riscv_fpucmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@

bool up_fpucmp(const void *saveregs1, const void *saveregs2)
{
const uintptr_t *regs1 = saveregs1;
const uintptr_t *regs2 = saveregs2;
const uintreg_t *regs1 = saveregs1;
const uintreg_t *regs2 = saveregs2;

return memcmp(&regs1[INT_XCPT_REGS], &regs2[INT_XCPT_REGS],
INT_REG_SIZE * FPU_XCPT_REGS) == 0;
Expand Down

0 comments on commit 9976e4c

Please sign in to comment.