This code should now build the x86_x64-softmmu part 2.
This commit is contained in:
@@ -148,12 +148,20 @@ extern bool use_vis3_instructions;
|
||||
|
||||
#define TCG_AREG0 TCG_REG_I0
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
|
||||
{
|
||||
uintptr_t p;
|
||||
FlushInstructionCache(GetCurrentProcess(), (const void*)start, stop-start);
|
||||
}
|
||||
#else
|
||||
static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
|
||||
{
|
||||
uintptr_t p;
|
||||
for (p = start & -8; p < ((stop + 7) & -8); p += 8) {
|
||||
__asm__ __volatile__("flush\t%0" : : "r" (p));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user