| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include "Core/PowerPC/JitCommon/JitBase.h" |
| 7 |
#include "Core/PowerPC/JitCommon/JitCache.h" |
| 8 |
|
| 9 |
class StubJit : public JitBase |
| 10 |
{ |
| 11 |
public: |
| 12 |
explicit StubJit(Core::System& system) : JitBase(system) {} |
| 13 |
|
| 14 |
|
| 15 |
void Init() override {} |
| 16 |
void Shutdown() override {} |
| 17 |
void ClearCache() override {} |
| 18 |
void Run() override {} |
| 19 |
void SingleStep() override {} |
| 20 |
const char* GetName() const override { return nullptr; } |
| 21 |
|
| 22 |
JitBaseBlockCache* GetBlockCache() override { return nullptr; } |
| 23 |
void Jit(u32) override {} |
| 24 |
void EraseSingleBlock(const JitBlock&) override {} |
| 25 |
std::vector<MemoryStats> GetMemoryStats() const override { return {}; } |
| 26 |
std::size_t DisassembleNearCode(const JitBlock&, std::ostream&) const override { return 0; } |
| 27 |
std::size_t DisassembleFarCode(const JitBlock&, std::ostream&) const override { return 0; } |
| 28 |
const CommonAsmRoutinesBase* GetAsmRoutines() override { return nullptr; } |
| 29 |
bool HandleFault(uintptr_t, SContext*) override { return false; } |
| 30 |
}; |
| 31 |
|
| 32 |
class StubBlockCache : public JitBaseBlockCache |
| 33 |
{ |
| 34 |
public: |
| 35 |
explicit StubBlockCache(JitBase& jit) : JitBaseBlockCache(jit) {} |
| 36 |
|
| 37 |
void WriteLinkBlock(const JitBlock::LinkData&, const JitBlock*) override {} |
| 38 |
}; |