13
0

Correctly dereference 'fxbuf' when building with MSVC

This commit is contained in:
John Emmas 2015-04-30 18:14:27 +01:00
parent fe3aafec1c
commit a3209b9b91

View File

@ -141,10 +141,11 @@ FPU::FPU ()
memset (*fxbuf, 0, 512);
#ifdef COMPILER_MSVC
char *buf = *fxbuf;
__asm {
mov eax, fxbuf
fxsave [eax]
};
mov eax, buf
fxsave [eax]
};
#else
asm volatile (
"fxsave (%0)"