Add PPC instruction ids

This commit is contained in:
Sajid 2024-09-09 01:30:45 +06:00
parent 42043a7aac
commit 893dcddbfc
5 changed files with 5770 additions and 3986 deletions

View File

@ -24,4 +24,9 @@ namespace ppc
{ {
return gBigEndianDisassembler.Disassemble(code, size, base, out); return gBigEndianDisassembler.Disassemble(code, size, base, out);
} }
static int Disassemble(const void* code, uint64_t base, ppc_insn& out)
{
return Disassemble(code, 4, base, out);
}
} }

View File

@ -1,4 +1,4 @@
project("disasm") project("disasm")
add_library(disasm "ppc-dis.c" "disasm.c") add_library(disasm "ppc-dis.c" "disasm.c" "ppc.h")
target_include_directories(disasm PUBLIC .) target_include_directories(disasm PUBLIC .)

View File

@ -410,6 +410,9 @@ typedef struct powerpc_opcode
operand table. They appear in the order which the operands must operand table. They appear in the order which the operands must
appear in assembly code, and are terminated by a zero. */ appear in assembly code, and are terminated by a zero. */
unsigned char operands[8]; unsigned char operands[8];
/* The opcode ID. */
int id;
} powerpc_opcode; } powerpc_opcode;
typedef struct ppc_insn typedef struct ppc_insn

File diff suppressed because it is too large Load Diff

1771
thirdparty/disasm/ppc.h vendored Normal file

File diff suppressed because it is too large Load Diff