From e7556a09f8a989484829a09fc26b04a447a5434c Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 24 May 2013 20:26:06 -0700 Subject: [PATCH] Fixing bad or during cr0 update - need to be overwriting. --- src/xenia/cpu/x64/x64_emitter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/x64/x64_emitter.cc b/src/xenia/cpu/x64/x64_emitter.cc index 7ca72b8df..ea1b56871 100644 --- a/src/xenia/cpu/x64/x64_emitter.cc +++ b/src/xenia/cpu/x64/x64_emitter.cc @@ -1376,7 +1376,7 @@ void X64Emitter::update_cr_with_cond(uint32_t n, GpVar& lhs) { GpVar v(c.newGpVar()); c.shl(v_g, imm(1)); c.shl(v_e, imm(2)); - c.or_(v.r8(), v_l.r8()); + c.mov(v.r8(), v_l.r8()); c.or_(v.r8(), v_g.r8()); c.or_(v.r8(), v_e.r8()); @@ -1405,7 +1405,7 @@ void X64Emitter::update_cr_with_cond(uint32_t n, GpVar& lhs, GpVar& rhs) { GpVar v(c.newGpVar()); c.shl(v_g, imm(1)); c.shl(v_e, imm(2)); - c.or_(v.r8(), v_l.r8()); + c.mov(v.r8(), v_l.r8()); c.or_(v.r8(), v_g.r8()); c.or_(v.r8(), v_e.r8());