Skip to content

Commit 3e1a954

Browse files
committed
runtime: additional hacking for yukon
1 parent 36f9699 commit 3e1a954

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

runtime/core/Heap.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ namespace alaska {
249249
return true;
250250
});
251251
}
252-
alaska::printf("Heap compaction moved %ld objects, recovering %zu bytes\n", c, bytes_saved);
253252
return c;
254253
}
255254

runtime/include/alaska/alaska.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ namespace alaska {
7878
reset();
7979
this->ptr = ptr;
8080
alt.invl = 0;
81+
#ifdef __riscv
82+
__asm__ volatile("fence" ::: "memory");
83+
#endif
8184
}
8285

8386

tools/build_riscv.sh

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cmake ../ \
1414
-DALASKA_ENABLE_COMPILER=OFF \
1515
-DALASKA_ENABLE_TESTING=OFF \
1616
-DALASKA_CORE_ONLY=ON \
17+
-DALASKA_SIZE_BITS=32 \
1718
-DCMAKE_SYSROOT=/opt/riscv/sysroot
1819

1920
make -j

tools/build_yukon.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cmake ../ \
1616
-DALASKA_ENABLE_TESTING=OFF \
1717
-DALASKA_CORE_ONLY=ON \
1818
-DALASKA_YUKON=ON \
19-
-DALASKA_SIZE_BITS=24 \
19+
-DALASKA_SIZE_BITS=32 \
2020
-DCMAKE_SYSROOT=$ROOT/sysroot
2121

2222
make -j

0 commit comments

Comments
 (0)