mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-11 04:29:37 +00:00
icbi fixed
This commit is contained in:
parent
d8f4a0c910
commit
6428f324f6
|
@ -1025,14 +1025,14 @@ void opc_group31(PPCDisasmContext* ctx)
|
||||||
/* dcba, dcbf, dcbi, dcbst, dcbt, dcbz, icbi */
|
/* dcba, dcbf, dcbi, dcbst, dcbt, dcbz, icbi */
|
||||||
else if ((index == 1) | (index == 2) | (index == 7) \
|
else if ((index == 1) | (index == 2) | (index == 7) \
|
||||||
| (index == 8) | (index == 14) | (index == 23) \
|
| (index == 8) | (index == 14) | (index == 23) \
|
||||||
| (index == 30) | (index == 31)) {
|
| (index == 30) | (index == 31)) {
|
||||||
if (rc_set | (rs != 0)) {
|
if (rc_set | (rs != 0)) {
|
||||||
opc_illegal(ctx);
|
opc_illegal(ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (ra == 0)
|
if (ra == 0)
|
||||||
ctx->instr_str = my_sprintf("%-8sr%d, 0, r%d", opcode, rb);
|
ctx->instr_str = my_sprintf("%-8s0, r%d", opcode, rb);
|
||||||
else
|
else
|
||||||
fmt_twoop(ctx->instr_str, opcode, ra, rb);
|
fmt_twoop(ctx->instr_str, opcode, ra, rb);
|
||||||
return;
|
return;
|
||||||
|
@ -1040,6 +1040,7 @@ void opc_group31(PPCDisasmContext* ctx)
|
||||||
}
|
}
|
||||||
else if (index == 17) { /* tlbsync */
|
else if (index == 17) { /* tlbsync */
|
||||||
ctx->instr_str = my_sprintf("%-8s", opcode);
|
ctx->instr_str = my_sprintf("%-8s", opcode);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
opc_illegal(ctx);
|
opc_illegal(ctx);
|
||||||
|
|
|
@ -366,7 +366,7 @@
|
||||||
# misc instructions
|
# misc instructions
|
||||||
0xFFF00100,0x7D290034,cntlzw,r9,r9
|
0xFFF00100,0x7D290034,cntlzw,r9,r9
|
||||||
0xFFF00100,0x7FFF0035,cntlzw.,r31,r31
|
0xFFF00100,0x7FFF0035,cntlzw.,r31,r31
|
||||||
0xFFF00100,0x7C00D7AC,icbi,r0,r26
|
0xFFF00100,0x7C00D7AC,icbi,0,r26
|
||||||
0xFFF00100,0x7D604828,lwarx,r11,0,r9
|
0xFFF00100,0x7D604828,lwarx,r11,0,r9
|
||||||
0xFFF00100,0x7CBC04AA,lswi,r5,r28,0x20
|
0xFFF00100,0x7CBC04AA,lswi,r5,r28,0x20
|
||||||
0xFFF00100,0x7FEF2C2A,lswx,r31,r15,r5
|
0xFFF00100,0x7FEF2C2A,lswx,r31,r15,r5
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user