spu2-x/ZeroSPU2: Let's add in clobber lists, and take out volatile on the rng as well...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3253 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-06-21 10:09:19 +00:00
parent 10576c5b01
commit 8bbb5848af
2 changed files with 4 additions and 2 deletions

View File

@ -274,7 +274,7 @@ static s32 __forceinline GetNoiseValues()
MOV Seed,eax
}
#else
__asm__ __volatile__ (
__asm__ (
".intel_syntax\n"
"MOV %%eax,%1\n"
"ROR %%eax,5\n"
@ -286,6 +286,7 @@ static s32 __forceinline GetNoiseValues()
"ROR %%eax,3\n"
"MOV %0,%%eax\n"
".att_syntax\n" : "=r"(Seed) :"r"(Seed)
: "%eax", "%esi"
);
#endif
return retval;

View File

@ -204,7 +204,7 @@ static void __forceinline GetNoiseValues(s32& VD)
MOV Seed,eax
}
#else
__asm__ __volatile__ (
__asm__ (
".intel_syntax\n"
"MOV %%eax,%1\n"
"ROR %%eax,5\n"
@ -216,6 +216,7 @@ static void __forceinline GetNoiseValues(s32& VD)
"ROR %%eax,3\n"
"MOV %0,%%eax\n"
".att_syntax\n" : "=r"(Seed) :"r"(Seed)
:"%eax", "%esi"
);
#endif
}