Add Linux SGX support (#106)

This commit is contained in:
wenyongh
2019-08-28 15:08:52 +08:00
committed by GitHub
parent c808aa2ebb
commit 5c69543c54
26 changed files with 2223 additions and 24 deletions

View File

@ -23,6 +23,9 @@
#include "bh_log.h"
#include "bh_list.h"
typedef void (*bh_print_function_t)(const char* message);
void bh_set_print_function(bh_print_function_t pf);
#define bh_memcpy_s(dest, dlen, src, slen) do { \
int _ret = slen == 0 ? 0 : b_memcpy_s (dest, dlen, src, slen); \
(void)_ret; \

View File

@ -26,7 +26,9 @@
#define DEFAULT_MEM_ALLOCATOR MEM_ALLOCATOR_EMS
/* Beihai log system */
#ifndef BEIHAI_ENABLE_LOG
#define BEIHAI_ENABLE_LOG 1
#endif
/* Beihai debugger support */
#define BEIHAI_ENABLE_TOOL_AGENT 1
@ -43,7 +45,9 @@
#endif
/* WASM VM log system */
#ifndef WASM_ENABLE_LOG
#define WASM_ENABLE_LOG 1
#endif
/* WASM Interpreter labels-as-values feature */
#define WASM_ENABLE_LABELS_AS_VALUES 1