Merge pull request #412 from DrChat/vrsave

Don't assert on VRSAVE mfspr/mtspr (used by gcc)
This commit is contained in:
Ben Vanik 2015-08-31 09:24:06 -07:00
commit 1cd8ed7db7
1 changed files with 7 additions and 0 deletions

View File

@ -593,6 +593,10 @@ XEEMITTER(mfspr, 0x7C0002A6, XFX)(PPCHIRBuilder& f, InstrData& i) {
// CTR
v = f.LoadCTR();
break;
case 256:
// VRSAVE
v = f.LoadZeroInt64();
break;
case 268:
// TB
v = f.LoadClock();
@ -678,6 +682,9 @@ XEEMITTER(mtspr, 0x7C0003A6, XFX)(PPCHIRBuilder& f, InstrData& i) {
// CTR
f.StoreCTR(rt);
break;
case 256:
// VRSAVE
break;
default:
XEINSTRNOTIMPLEMENTED();
return 1;