mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 23:18:57 +01:00
48 lines
973 B
C++
48 lines
973 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "Common/ChunkFile.h"
|
|
#include "Core/PowerPC/CPUCoreBase.h"
|
|
#include "Core/PowerPC/JitCommon/JitBackpatch.h"
|
|
|
|
namespace JitInterface
|
|
{
|
|
enum
|
|
{
|
|
EXCEPTIONS_FIFO_WRITE
|
|
};
|
|
|
|
void DoState(PointerWrap &p);
|
|
|
|
CPUCoreBase *InitJitCore(int core);
|
|
void InitTables(int core);
|
|
CPUCoreBase *GetCore();
|
|
|
|
// Debugging
|
|
void WriteProfileResults(const std::string& filename);
|
|
|
|
// Memory Utilities
|
|
bool HandleFault(uintptr_t access_address, SContext* ctx);
|
|
|
|
// used by JIT to read instructions
|
|
u32 ReadOpcodeJIT(const u32 _Address);
|
|
|
|
// Clearing CodeCache
|
|
void ClearCache();
|
|
|
|
void ClearSafe();
|
|
|
|
// If "forced" is true, a recompile is being requested on code that hasn't been modified.
|
|
void InvalidateICache(u32 address, u32 size, bool forced);
|
|
|
|
void CompileExceptionCheck(int type);
|
|
|
|
void Shutdown();
|
|
}
|
|
extern bool bMMU;
|
|
|