mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
cgen: fix riscv32 closure (#24355)
This commit is contained in:
parent
8e73319a61
commit
ead4d90a14
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue