Implement Memory64 support for AOT (#3362)
Refer to: https://github.com/bytecodealliance/wasm-micro-runtime/pull/3266 https://github.com/bytecodealliance/wasm-micro-runtime/issues/3091
This commit is contained in:
@ -1119,9 +1119,6 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r, output = '
|
||||
cmd.append("--enable-gc")
|
||||
cmd.append("--enable-tail-call")
|
||||
|
||||
if opts.memory64:
|
||||
cmd.append("--enable-memory64")
|
||||
|
||||
if output == 'object':
|
||||
cmd.append("--format=object")
|
||||
elif output == 'ir':
|
||||
@ -1134,9 +1131,10 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r, output = '
|
||||
|
||||
# Bounds checks is disabled by default for 64-bit targets, to
|
||||
# use the hardware based bounds checks. But it is not supported
|
||||
# in QEMU with NuttX.
|
||||
# Enable bounds checks explicitly for all targets if running in QEMU.
|
||||
if opts.qemu:
|
||||
# in QEMU with NuttX and in memory64 mode.
|
||||
# Enable bounds checks explicitly for all targets if running in QEMU or all targets
|
||||
# running in memory64 mode.
|
||||
if opts.qemu or opts.memory64:
|
||||
cmd.append("--bounds-checks=1")
|
||||
|
||||
# RISCV64 requires -mcmodel=medany, which can be set by --size-level=1
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
diff --git a/test/core/binary.wast b/test/core/binary.wast
|
||||
index b9fa438c..08ecee27 100644
|
||||
--- a/test/core/binary.wast
|
||||
+++ b/test/core/binary.wast
|
||||
@@ -621,15 +621,6 @@
|
||||
)
|
||||
|
||||
;; Malformed memory limits flag
|
||||
-(assert_malformed
|
||||
- (module binary
|
||||
- "\00asm" "\01\00\00\00"
|
||||
- "\05\03\01" ;; memory section with one entry
|
||||
- "\04" ;; malformed memory limits flag
|
||||
- "\00" ;; min 0
|
||||
- )
|
||||
- "malformed limits flags"
|
||||
-)
|
||||
(assert_malformed
|
||||
(module binary
|
||||
"\00asm" "\01\00\00\00"
|
||||
Reference in New Issue
Block a user