tevador 7 лет назад
Родитель
Сommit
c05947db09
2 измененных файлов с 9 добавлено и 0 удалено
  1. 3 0
      src/JitCompilerX86.cpp
  2. 6 0
      src/dataset.cpp

+ 3 - 0
src/JitCompilerX86.cpp

@@ -27,6 +27,9 @@ along with RandomX.  If not, see<http://www.gnu.org/licenses/>.
 #else
 #include <sys/types.h>
 #include <sys/mman.h>
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
 #endif
 
 namespace RandomX {

+ 6 - 0
src/dataset.cpp

@@ -131,6 +131,12 @@ namespace RandomX {
 		}
 	}
 
+	template
+		void initBlock<true>(const uint8_t*, uint8_t*, uint32_t, const KeysContainer&);
+
+	template
+		void initBlock<false>(const uint8_t*, uint8_t*, uint32_t, const KeysContainer&);
+
 	template<bool softAes>
 	convertible_t datasetReadLight(addr_t addr, MemoryRegisters& memory) {
 		convertible_t data;