Allow Bochs to build on big endian systems.
This commit is contained in:
parent
258ac052e6
commit
7b84011ccb
12
emulators/bochs/patches/patch-cpu_access_cc
Normal file
12
emulators/bochs/patches/patch-cpu_access_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$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,
|
Loading…
Reference in New Issue
Block a user