This code should now build the x86_x64-softmmu part 2.

This commit is contained in:
xorstream
2017-01-19 22:50:28 +11:00
parent 37f9a248ea
commit 1aeaf5c40d
174 changed files with 2418 additions and 1414 deletions

View File

@@ -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