We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 426eab6 commit 2f37bb8Copy full SHA for 2f37bb8
runtime/core/barrier.cpp
@@ -11,6 +11,7 @@
11
#define UNW_LOCAL_ONLY
12
#include <libunwind.h>
13
#include <alaska/StackMapParser.h>
14
+#include <alaska/config.h>
15
16
17
#include <dlfcn.h>
@@ -74,6 +75,9 @@ using inst_t = uint16_t;
74
75
#ifdef __aarch64__
76
using inst_t = uint32_t;
77
#endif
78
+#ifdef __riscv
79
+using inst_t = uint16_t;
80
+#endif
81
82
struct PatchPoint {
83
inst_t* pc;
@@ -619,6 +623,12 @@ void parse_stack_map(uint8_t* t) {
619
623
p.inst_sig = 0x00000000; // udf #0
620
624
621
625
626
+
627
628
+ p.inst_nop = 0x0001; // nop
629
+ p.inst_sig = 0x0000; // unimp
630
631
622
632
patchPoints.push(p);
633
}
634
if (record.getID() == 'PATC') {
0 commit comments