Skip to content

Commit

Permalink
Add support for loading architectures not present in the framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Heitman committed Sep 12, 2016
1 parent 9addca6 commit eaa116a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions barf/barf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ def open(self, filename):

self._load()

def load_architecture(self, name, arch_info, disassembler, translator):
# Set up architecture information
self.arch_info = arch_info
self.disassembler = disassembler
self.ir_translator = translator

# setup analysis modules
self._setup_analysis_modules()

def translate(self, ea_start=None, ea_end=None, arch_mode=None):
"""Translate to REIL instructions.
Expand Down

0 comments on commit eaa116a

Please sign in to comment.