Skip to content

Commit 739b242

Browse files
committed
Fix crashing bug in PR adafruit#10325 for RISC-V builds.
1 parent 5ba4f77 commit 739b242

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

supervisor/shared/cpu_regs.h

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
#endif
2121
#endif
2222

23+
#ifdef __riscv
24+
#define INTEGER_REGS 12
25+
#ifdef __riscv_vector
26+
#define FLOATING_POINT_REGS 12
27+
#endif
28+
#endif
29+
2330
#ifndef INTEGER_REGS
2431
#define INTEGER_REGS 0
2532
#endif

0 commit comments

Comments
 (0)