fix MakeExecutable patch for little endian systems

This commit is contained in:
gbeauche 2003-10-26 08:48:48 +00:00
parent 46a1b4ada5
commit 7312739738

View File

@ -261,7 +261,7 @@ void EmulOp(M68kRegisters *r, uint32 pc, int selector)
MakeExecutableTvec = (uint32 *)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable"); MakeExecutableTvec = (uint32 *)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable");
D(bug("MakeExecutable TVECT at %p\n", MakeExecutableTvec)); D(bug("MakeExecutable TVECT at %p\n", MakeExecutableTvec));
#if EMULATED_PPC #if EMULATED_PPC
MakeExecutableTvec[0] = POWERPC_NATIVE_OP_FUNC(NATIVE_MAKE_EXECUTABLE); MakeExecutableTvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_MAKE_EXECUTABLE));
#else #else
#ifdef __BEOS__ #ifdef __BEOS__
MakeExecutableTvec[0] = ((uint32 *)MakeExecutable)[0]; MakeExecutableTvec[0] = ((uint32 *)MakeExecutable)[0];