ppc: fix PPC_init()

test2
Nguyen Anh Quynh 10 years ago
parent bfcaba5851
commit f4a2da5a94
  1. 31
      arch/PowerPC/PPCDisassembler.c

@ -406,21 +406,24 @@ bool PPC_getInstruction(csh ud, const uint8_t *code, size_t code_len,
void PPC_init(MCRegisterInfo *MRI)
{
/*
InitMCRegisterInfo(PPCRegDesc, 279, RA, PC,
PPCMCRegisterClasses, 21,
PPCRegUnitRoots,
146,
PPCRegDiffLists,
PPCRegStrings,
PPCSubRegIdxLists,
8,
PPCSubRegIdxRanges,
PPCRegEncodingTable);
*/
MCRegisterInfo_InitMCRegisterInfo(MRI, PPCRegDesc, 279,
InitMCRegisterInfo(PPCRegDesc, 310, RA, PC,
PPCMCRegisterClasses, 23,
PPCRegUnitRoots,
138,
PPCRegDiffLists,
PPCLaneMaskLists,
PPCRegStrings,
PPCRegClassStrings,
PPCSubRegIdxLists,
8,
PPCSubRegIdxRanges,
PPCRegEncodingTable);
*/
MCRegisterInfo_InitMCRegisterInfo(MRI, PPCRegDesc, 310,
0, 0,
PPCMCRegisterClasses, 21,
PPCMCRegisterClasses, 23,
0, 0,
PPCRegDiffLists,
0,

Loading…
Cancel
Save