cgen: fix riscv32 closure (#24355)

This commit is contained in:
Mike 2025-04-29 20:42:22 +03:00 committed by GitHub
parent 8e73319a61
commit ead4d90a14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,10 +138,11 @@ static char __CLOSURE_GET_DATA_BYTES[] = {
static char __closure_thunk[] = {
0x97, 0xCF, 0xFF, 0xFF, // auipc t6, 0xffffc
0x03, 0xAF, 0x4F, 0x00, // lw t5, 4(t6)
0x07, 0xAB, 0x0F, 0x00, // flw fs6, 0(t6)
0x67, 0x00, 0x0F, 0x00 // jr t5
};
static char __CLOSURE_GET_DATA_BYTES[] = {
0x03, 0xA5, 0x0F, 0x00, // lw a0, 0(t6)
0x53, 0x05, 0x0B, 0xE0, // fmv.x.w a0, fs6
0x67, 0x80, 0x00, 0x00 // ret
};
#elif defined (__V_s390x)