Fixing warnings on mtmsr/mtmsrd disasm.

This commit is contained in:
Ben Vanik 2013-05-26 15:03:36 -07:00
parent 5f494a4449
commit fd86370ccc
1 changed files with 2 additions and 2 deletions

View File

@ -225,14 +225,14 @@ XEDISASMR(mfmsr, 0x7C0000A6, X)(InstrData& i, InstrDisasm& d) {
XEDISASMR(mtmsr, 0x7C000124, X)(InstrData& i, InstrDisasm& d) { XEDISASMR(mtmsr, 0x7C000124, X)(InstrData& i, InstrDisasm& d) {
d.Init("mtmsr", "Move To Machine State Register", 0); d.Init("mtmsr", "Move To Machine State Register", 0);
d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead); d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead);
d.AddSImmOperand((i.X.RA & 16 != 0) ? 1 : 0, 1); d.AddSImmOperand((i.X.RA & 16) ? 1 : 0, 1);
return d.Finish(); return d.Finish();
} }
XEDISASMR(mtmsrd, 0x7C000164, X)(InstrData& i, InstrDisasm& d) { XEDISASMR(mtmsrd, 0x7C000164, X)(InstrData& i, InstrDisasm& d) {
d.Init("mtmsrd", "Move To Machine State Register Doubleword", 0); d.Init("mtmsrd", "Move To Machine State Register Doubleword", 0);
d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead); d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead);
d.AddSImmOperand((i.X.RA & 16 != 0) != 0 ? 1 : 0, 1); d.AddSImmOperand((i.X.RA & 16) ? 1 : 0, 1);
return d.Finish(); return d.Finish();
} }