Skip to content

Commit

Permalink
Add SPE option to cstool
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 18, 2024
1 parent 6f14f96 commit 01553a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ typedef struct cs_arch_config {
PPC_global_init, \
PPC_option, \
~(CS_MODE_LITTLE_ENDIAN | CS_MODE_32 | CS_MODE_64 | CS_MODE_BIG_ENDIAN \
| CS_MODE_QPX | CS_MODE_PS | CS_MODE_BOOKE), \
| CS_MODE_QPX | CS_MODE_PS | CS_MODE_BOOKE | CS_MODE_SPE), \
}
#define CS_ARCH_CONFIG_SPARC \
{ \
Expand Down
4 changes: 4 additions & 0 deletions cstool/cstool.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,16 @@ static struct {
{ "ppc32be", "PowerPC 32-bit, big endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_BIG_ENDIAN },
{ "ppc32qpx", "PowerPC 32-bit, qpx, little endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_QPX | CS_MODE_LITTLE_ENDIAN },
{ "ppc32beqpx", "PowerPC 32-bit, qpx, big endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_QPX | CS_MODE_BIG_ENDIAN },
{ "ppc32spe", "PowerPC 32-bit, spe, little endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_SPE | CS_MODE_LITTLE_ENDIAN },
{ "ppc32bespe", "PowerPC 32-bit, spe, big endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_SPE | CS_MODE_BIG_ENDIAN },
{ "ppc32ps", "PowerPC 32-bit, ps, little endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_PS | CS_MODE_LITTLE_ENDIAN },
{ "ppc32beps", "PowerPC 32-bit, ps, big endian", CS_ARCH_PPC, CS_MODE_32 | CS_MODE_PS | CS_MODE_BIG_ENDIAN },
{ "ppc64", "PowerPC 64-bit, little endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_LITTLE_ENDIAN },
{ "ppc64be", "PowerPC 64-bit, big endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_BIG_ENDIAN },
{ "ppc64qpx", "PowerPC 64-bit, qpx, little endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_QPX | CS_MODE_LITTLE_ENDIAN },
{ "ppc64beqpx", "PowerPC 64-bit, qpx, big endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_QPX | CS_MODE_BIG_ENDIAN },
{ "ppc64spe", "PowerPC 64-bit, spe, little endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_SPE | CS_MODE_LITTLE_ENDIAN },
{ "ppc64bespe", "PowerPC 64-bit, spe, big endian", CS_ARCH_PPC, CS_MODE_64 | CS_MODE_SPE | CS_MODE_BIG_ENDIAN },

{ "sparc", "Sparc, big endian", CS_ARCH_SPARC, CS_MODE_BIG_ENDIAN },
{ "sparcv9", "Sparc v9, big endian", CS_ARCH_SPARC, CS_MODE_BIG_ENDIAN | CS_MODE_V9 },
Expand Down

0 comments on commit 01553a5

Please sign in to comment.