JitCodeBuffer: Expose FlushInstructionCache() to callers

This commit is contained in:
Connor McLaughlin
2019-12-20 21:23:52 +10:00
parent 1de096224c
commit decf416aee
2 changed files with 16 additions and 12 deletions

View File

@ -21,6 +21,9 @@ public:
/// Assumes alignment is a power-of-two.
void Align(u32 alignment, u8 padding_value);
/// Flushes the instruction cache on the host for the specified range.
static void FlushInstructionCache(void* address, u32 size);
private:
u8* m_code_ptr;
u8* m_free_code_ptr;