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 // CTR
v = f.LoadCTR(); v = f.LoadCTR();
break; break;
case 256:
// VRSAVE
v = f.LoadZeroInt64();
break;
case 268: case 268:
// TB // TB
v = f.LoadClock(); v = f.LoadClock();
@ -678,6 +682,9 @@ XEEMITTER(mtspr, 0x7C0003A6, XFX)(PPCHIRBuilder& f, InstrData& i) {
// CTR // CTR
f.StoreCTR(rt); f.StoreCTR(rt);
break; break;
case 256:
// VRSAVE
break;
default: default:
XEINSTRNOTIMPLEMENTED(); XEINSTRNOTIMPLEMENTED();
return 1; return 1;