risc-v/64ilp32: revise up_fpucmp

This revises `up_fpucmp()` to add rv64ilp32 support.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-06-21 09:10:17 +08:00 committed by Xiang Xiao
parent 0ffbff84d1
commit 3a4c2cea55

View File

@ -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;