Jit64: implement dcbf + dcbi

This commit is contained in:
degasus
2015-06-26 13:16:38 +02:00
parent 0ad6fa8f62
commit 6f34b27323
7 changed files with 98 additions and 19 deletions

View File

@ -60,6 +60,7 @@ typedef void (*CompiledCode)();
// implementation of std::bitset is slow.
class ValidBlockBitSet final
{
public:
enum
{
VALID_BLOCK_MASK_SIZE = 0x20000000 / 32,
@ -67,7 +68,6 @@ class ValidBlockBitSet final
};
std::unique_ptr<u32[]> m_valid_block;
public:
ValidBlockBitSet()
{
m_valid_block.reset(new u32[VALID_BLOCK_ALLOC_ELEMENTS]);
@ -157,6 +157,11 @@ public:
// DOES NOT WORK CORRECTLY WITH INLINING
void InvalidateICache(u32 address, const u32 length, bool forced);
u32* GetBlockBitSet() const
{
return valid_block.m_valid_block.get();
}
};
// x86 BlockCache