Permalink
Browse files

updated Bap_arch (#730)

Those changes allow to disasemble powerpc targets
  • Loading branch information...
gitoleg authored and ivg committed Jan 12, 2018
1 parent 60e80c9 commit 53516b310d65d7411192a5c1fedbc796586b0b12
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/bap_types/bap_arch.ml
@@ -12,9 +12,12 @@ module T = struct
let module_name = Some "Bap.Std.Arch"
let version = "1.0.0"
let to_string = function
| `x86 -> "i386"
| `systemz -> "s390x"
| `ppc -> "powerpc"
| `ppc64 -> "powerpc64"
| `ppc64le -> "powerpc64le"
| arch -> Sexp.to_string (sexp_of_t arch)
let pp ch arch = Format.fprintf ch "%s" (to_string arch)
@@ -30,6 +33,7 @@ module T = struct
| "thumbeb" -> "thumbv7eb"
| "xscale" -> "arm"
| "powerpc64" | "ppu" -> "ppc64"
| "powerpc64le" -> "ppc64le"
| "sparc64" -> "sparcv9"
| "s390x" -> "systemz"
| "arm64" -> "aarch64"

0 comments on commit 53516b3

Please sign in to comment.