$OpenBSD: patch-cpu_access_cc,v 1.4 2008/07/22 13:08:05 brad Exp $ --- cpu/access.cc.orig Tue Jul 22 09:03:51 2008 +++ cpu/access.cc Tue Jul 22 09:04:09 2008 @@ -1212,7 +1212,7 @@ BX_CPU_C::write_RMW_virtual_qword(Bit64u val64) BX_DBG_PHY_MEMORY_ACCESS(BX_CPU_ID, BX_CPU_THIS_PTR address_xlation.paddress1, BX_CPU_THIS_PTR address_xlation.len1, BX_WRITE, - ((Bit8u *) &val32) + (8 - BX_CPU_THIS_PTR address_xlation.len1)); + ((Bit8u *) &val64) + (8 - BX_CPU_THIS_PTR address_xlation.len1)); BX_MEM(0)->writePhysicalPage(BX_CPU_THIS, BX_CPU_THIS_PTR address_xlation.paddress2, BX_CPU_THIS_PTR address_xlation.len2,