From 91e6c4ed9a8358869db3d8738f9c8890e059523b Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 19 Oct 2013 14:29:14 -0700 Subject: [PATCH] Adding address mask to stvlx. --- src/xenia/cpu/x64/x64_emit_altivec.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/cpu/x64/x64_emit_altivec.cc b/src/xenia/cpu/x64/x64_emit_altivec.cc index 9ce913ed6..1fd07e987 100644 --- a/src/xenia/cpu/x64/x64_emit_altivec.cc +++ b/src/xenia/cpu/x64/x64_emit_altivec.cc @@ -389,6 +389,7 @@ static void __emulated_stvlx(uint64_t addr, __m128i vd) { // addr here is the fully translated address. const uint8_t eb = addr & 0xF; const size_t size = 16 - eb; + addr &= ~0xF; uint8_t* p = (uint8_t*)addr; for (size_t i = 0; i < size; i++) { p[i] = vd.m128i_u8[size - eb - 1 - i];