Skip to content

Commit 426eab6

Browse files
committed
add a patch size for riscv
1 parent dc30c2a commit 426eab6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

runtime/include/alaska/config.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
#define ALASKA_PATCH_SIZE 4
1414
#endif
1515

16-
17-
// Now do other configuration!
18-
#define ALASKA_LOCK_TRACKING // By default, enable lock tracking as some services *require* it
19-
16+
#ifdef __riscv
17+
// On riscv, we patch using the `unimp` instruction, a compressed
18+
// instruction which has the bytes `0x0000`
19+
#define ALASKA_PATCH_SIZE 2
20+
#endif
2021

2122
#define ALASKA_SQUEEZE_BITS 3

0 commit comments

Comments
 (0)