From 73127397386badc1375063e162cc9cc92f2ef89c Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 26 Oct 2003 08:48:48 +0000 Subject: [PATCH] fix MakeExecutable patch for little endian systems --- SheepShaver/src/emul_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SheepShaver/src/emul_op.cpp b/SheepShaver/src/emul_op.cpp index 38a5e09a..34246ab8 100644 --- a/SheepShaver/src/emul_op.cpp +++ b/SheepShaver/src/emul_op.cpp @@ -261,7 +261,7 @@ void EmulOp(M68kRegisters *r, uint32 pc, int selector) MakeExecutableTvec = (uint32 *)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable"); D(bug("MakeExecutable TVECT at %p\n", MakeExecutableTvec)); #if EMULATED_PPC - MakeExecutableTvec[0] = POWERPC_NATIVE_OP_FUNC(NATIVE_MAKE_EXECUTABLE); + MakeExecutableTvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_MAKE_EXECUTABLE)); #else #ifdef __BEOS__ MakeExecutableTvec[0] = ((uint32 *)MakeExecutable)[0];