Browse Source

enable wasm simd128 feature

Fabian 7 months ago
parent
commit
bf8dbfcaf9
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Makefile
  2. 1 0
      src/rust/cpu/cpu.rs

+ 1 - 1
Makefile

@@ -76,7 +76,7 @@ CARGO_FLAGS_SAFE=\
 		-C link-args="build/zstddeclib.o" \
 		--verbose
 
-CARGO_FLAGS=$(CARGO_FLAGS_SAFE) -C target-feature=+bulk-memory
+CARGO_FLAGS=$(CARGO_FLAGS_SAFE) -C target-feature=+bulk-memory -C target-feature=+simd128
 
 CORE_FILES=const.js config.js io.js main.js lib.js buffer.js ide.js pci.js floppy.js \
 	   memory.js dma.js pit.js vga.js ps2.js pic.js rtc.js uart.js hpet.js \

+ 1 - 0
src/rust/cpu/cpu.rs

@@ -45,6 +45,7 @@ pub const WASM_TABLE_OFFSET: u32 = 1024;
 
 #[derive(Copy, Clone)]
 #[repr(C)]
+#[repr(align(16))]
 pub union reg128 {
     pub i8: [i8; 16],
     pub i16: [i16; 8],