54,55c54,55
< RegId reg = srcRegIdx(i);
< if (reg.regClass != MiscRegClass) {
---
> const RegId& reg = srcRegIdx(i);
> if (!reg.isMiscReg()) {
58c58
< if (reg.regIdx == MISCREG_CPSR) {
---
> if (reg.index() == MISCREG_CPSR) {
63c63
< if (reg.regIdx == MISCREG_SPSR) {
---
> if (reg.index() == MISCREG_SPSR) {
82,83c82,83
< RegId reg = destRegIdx(i);
< if (reg.regClass != MiscRegClass) {
---
> const RegId& reg = destRegIdx(i);
> if (!reg.isMiscReg()) {
86c86
< if (reg.regIdx == MISCREG_CPSR) {
---
> if (reg.index() == MISCREG_CPSR) {
91c91
< if (reg.regIdx == MISCREG_SPSR) {
---
> if (reg.index() == MISCREG_SPSR) {