Skip to content

Commit

Permalink
Goodbye PowerPC, you can always be resurrected when the time comes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 16, 2014
1 parent 6643849 commit a54e0cf
Show file tree
Hide file tree
Showing 22 changed files with 7 additions and 6,667 deletions.
927 changes: 0 additions & 927 deletions Common/ppcEmitter.cpp

This file was deleted.

518 changes: 0 additions & 518 deletions Common/ppcEmitter.h

This file was deleted.

2 changes: 0 additions & 2 deletions Core/HLE/ReplaceTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,6 @@ static int Hook_kankabanchoutbr_download_frame() {
#define JITFUNC(f) (&MIPSComp::Jit::f)
#elif defined(MIPS)
#define JITFUNC(f) (&MIPSComp::Jit::f)
#elif defined(PPC)
#define JITFUNC(f) (&MIPSComp::Jit::f)
#endif

// Can either replace with C functions or functions emitted in Asm/ArmAsm.
Expand Down
20 changes: 4 additions & 16 deletions Core/MIPS/JitCommon/JitBlockCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
#elif defined(_M_IX86) || defined(_M_X64)
#include "Common/x64Analyzer.h"
#include "Core/MIPS/x86/Asm.h"
#elif defined(PPC)
#include "Core/MIPS/MIPS.h"
#else
#warning "Unsupported arch!"
#include "Core/MIPS/MIPS.h"
Expand Down Expand Up @@ -425,7 +423,7 @@ void JitBlockCache::LinkBlockExits(int i) {
} while ((op & 0xFF000000) != 0xEA000000);
emit.BKPT(1);
emit.FlushIcache();

b.linkStatus[e] = true;
#elif defined(_M_IX86) || defined(_M_X64)
XEmitter emit(b.exitPtrs[e]);
// Okay, this is a bit ugly, but we check here if it already has a JMP.
Expand All @@ -440,12 +438,8 @@ void JitBlockCache::LinkBlockExits(int i) {
emit.INT3();
}
}
#elif defined(PPC)
PPCXEmitter emit(b.exitPtrs[e]);
emit.B(blocks_[destinationBlock].checkedEntry);
emit.FlushIcache();
#endif
b.linkStatus[e] = true;
#endif
}
}
}
Expand Down Expand Up @@ -590,12 +584,6 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
XEmitter emit((u8 *)b->checkedEntry);
emit.MOV(32, M(&mips_->pc), Imm32(b->originalAddress));
emit.JMP(MIPSComp::jit->Asm().dispatcher, true);
#elif defined(PPC)
PPCXEmitter emit((u8 *)b->checkedEntry);
emit.MOVI2R(R3, b->originalAddress);
emit.STW(R0, CTXREG, offsetof(MIPSState, pc));
emit.B(MIPSComp::jit->dispatcher);
emit.FlushIcache();
#endif
}

Expand Down Expand Up @@ -631,8 +619,8 @@ int JitBlockCache::GetBlockExitSize() {
return 0;
#elif defined(_M_IX86) || defined(_M_X64)
return 15;
#elif defined(PPC)
// TODO
#else
#warning GetBlockExitSize unimplemented
return 0;
#endif
}
4 changes: 0 additions & 4 deletions Core/MIPS/JitCommon/JitBlockCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ typedef ArmGen::ARMXCodeBlock NativeCodeBlock;
#include "Common/x64Emitter.h"
namespace Gen { class XEmitter; }
typedef Gen::XCodeBlock NativeCodeBlock;
#elif defined(PPC)
#include "Common/ppcEmitter.h"
namespace PpcGen { class PPCXEmitter; }
typedef PpcGen::PPCXCodeBlock NativeCodeBlock;
#elif defined(MIPS)
#include "Common/MipsEmitter.h"
namespace MIPSGen { class MIPSEmitter; }
Expand Down
5 changes: 1 addition & 4 deletions Core/MIPS/JitCommon/NativeJit.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ struct JitBlock;
#undef emit
#endif

#if defined(PPC)
#include "../PPC/PpcJit.h"
typedef MIPSComp::Jit NativeJit;
#elif defined(ARM)
#if defined(ARM)
#include "../ARM/ArmJit.h"
typedef MIPSComp::ArmJit NativeJit;
#elif defined(_M_IX86) || defined(_M_X64)
Expand Down
4 changes: 2 additions & 2 deletions Core/MIPS/MIPSTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ struct MIPSInstruction {
#define JITFUNC(f) (&Jit::f)
#elif defined(MIPS)
#define JITFUNC(f) (&Jit::f)
#elif defined(PPC)
#define JITFUNC(f) (&Jit::f)
#else
#error Unknown architecture
#endif

using namespace MIPSDis;
Expand Down
285 changes: 0 additions & 285 deletions Core/MIPS/PPC/PpcAsm.cpp

This file was deleted.

Loading

0 comments on commit a54e0cf

Please sign in to comment.