mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Jit64: implement dcbf + dcbi
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user