Fix interp hw bound check issues (#1322)
Fix build script to enable hw bound check for interpreter when AOT is disabled, so as to enable spec cases test for interp with hw bound check. And fix the issues found.
This commit is contained in:
@ -201,10 +201,6 @@ endif ()
|
||||
if (WAMR_DISABLE_HW_BOUND_CHECK EQUAL 1)
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
message (" Hardware boundary check disabled")
|
||||
elseif (NOT WAMR_BUILD_AOT EQUAL 1)
|
||||
# Enable memory access boundary check with hardware trap
|
||||
# only when AOT/JIT is enabled
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
else ()
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=0)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user