File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Ghidra/Processors/PowerPC/data/languages Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ IMM16B: val is IMM_0_10_VLE & IMM_16_20_VLE [ val = (IMM_16_20_VLE << 11) |
541
541
}
542
542
543
543
:se_btsti RX_VLE,OIM5_VLE is $(ISVLE) & OP6_VLE=25 & BIT9_VLE=1 & RX_VLE & OIM5_VLE {
544
- tmp:$(REGISTER_SIZE) = (RX_VLE >> OIM5_VLE) & 0x1;
544
+ tmp:$(REGISTER_SIZE) = (RX_VLE >> (0x1F - OIM5_VLE) ) & 0x1;
545
545
cr0flags(tmp);
546
546
}
547
547
@@ -709,13 +709,13 @@ IMM16B: val is IMM_0_10_VLE & IMM_16_20_VLE [ val = (IMM_16_20_VLE << 11) |
709
709
}
710
710
711
711
:se_bclri RX_VLE,OIM5_VLE is $(ISVLE) & OP6_VLE=24 & BIT9_VLE=0 & RX_VLE & OIM5_VLE {
712
- tmp:$(REGISTER_SIZE) = 1 << OIM5_VLE;
712
+ tmp:$(REGISTER_SIZE) = 0x80000000 >> OIM5_VLE;
713
713
tmp = ~tmp;
714
714
RX_VLE = RX_VLE & tmp;
715
715
}
716
716
717
717
:se_bgeni RX_VLE,OIM5_VLE is $(ISVLE) & OP6_VLE=24 & BIT9_VLE=1 & RX_VLE & OIM5_VLE {
718
- RX_VLE = 1 << OIM5_VLE;
718
+ RX_VLE = 0x80000000 >> OIM5_VLE;
719
719
}
720
720
721
721
:se_bmaski RX_VLE,OIM5_VLE is $(ISVLE) & OP6_VLE=11 & BIT9_VLE=0 & RX_VLE & OIM5_VLE {
@@ -725,7 +725,7 @@ IMM16B: val is IMM_0_10_VLE & IMM_16_20_VLE [ val = (IMM_16_20_VLE << 11) |
725
725
}
726
726
727
727
:se_bseti RX_VLE,OIM5_VLE is $(ISVLE) & OP6_VLE=25 & BIT9_VLE=0 & RX_VLE & OIM5_VLE {
728
- tmp:$(REGISTER_SIZE) = 1 << OIM5_VLE;
728
+ tmp:$(REGISTER_SIZE) = 0x80000000 >> OIM5_VLE;
729
729
RX_VLE = RX_VLE | tmp;
730
730
}
731
731
You can’t perform that action at this time.
0 commit comments