File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ type t =
98
98
| Lm32
99
99
| Microblaze
100
100
| M6502
101
+ | AArch64
101
102
| Last
102
103
[@@ deriving enumerate , variants ]
103
104
Original file line number Diff line number Diff line change @@ -90,3 +90,15 @@ module Sparc = struct
90
90
let all = all
91
91
end )
92
92
end
93
+
94
+ module AArch64 = struct
95
+ type t =
96
+ | Unknown
97
+ [@@ deriving enumerate , variants ]
98
+
99
+ include Frame_enum. Make (struct
100
+ type nonrec t = t
101
+ let rank = Variants. to_rank
102
+ let all = all
103
+ end )
104
+ end
Original file line number Diff line number Diff line change @@ -89,13 +89,18 @@ module Arch = struct
89
89
| Some (X86_64 | X86_64_intel ) -> Some `x86_64
90
90
| _ -> None )
91
91
92
+ let aarch64 n = Frame_mach.AArch64. (match of_enum n with
93
+ | Some (Unknown) -> Some `aarch64
94
+ | _ -> None )
95
+
92
96
(* * a projection from BFD architectures to BAP. *)
93
97
let of_bfd arch mach = match arch with
94
98
| Frame_arch. Arm -> arm mach
95
99
| Frame_arch. I386 -> i386 mach
96
100
| Frame_arch. Mips -> mips mach
97
101
| Frame_arch. Powerpc -> ppc mach
98
102
| Frame_arch. Sparc -> sparc mach
103
+ | Frame_arch. AArch64 -> aarch64 mach
99
104
| _ -> None
100
105
end
101
106
Original file line number Diff line number Diff line change @@ -382,6 +382,8 @@ enum frame_architecture
382
382
#define frame_mach_lm32 1
383
383
frame_arch_microblaze ,/* Xilinx MicroBlaze. */
384
384
frame_arch_6502 ,/* MOS Technology 6502. */
385
+ frame_arch_aarch64 , /* AArch64. */
386
+ #define frame_mach_aarch64 0
385
387
frame_arch_last
386
388
};
387
389
You can’t perform that action at this time.
0 commit comments