Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
b14aa178 committed Apr 28, 2019
1 parent 41c661c commit 6454de0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# Emacs files
*~
# Compiled python files
*\.pyc
*\.pyc
/.idea/
5 changes: 5 additions & 0 deletions miasm/arch/arm/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,7 @@ def encode(self):
imm12_off = bs(l=12, fname="imm")

imm2_noarg = bs(l=2, fname="imm")
imm3_noarg = bs(l=3, fname="imm3")
imm4_noarg = bs(l=4, fname="imm4")


Expand Down Expand Up @@ -2431,6 +2432,7 @@ class arm_sp(arm_reg):
armtop("addsubi", [bs('000111'), bs_addsub_name, off3, rsl, rdl], [rdl, rsl, off3])
armtop("mcas", [bs('001'), bs_mov_cmp_add_sub_name, rnl, off8])
armtop("alu", [bs('010000'), bs_alu_name, rsl, rdl], [rdl, rsl])

# should not be used ??
armtop("hiregop00", [bs('010001'), bs_hiregop_name, bs('00'), rsl, rdl], [rdl, rsl])
armtop("hiregop01", [bs('010001'), bs_hiregop_name, bs('01'), rsh, rdl], [rdl, rsh])
Expand Down Expand Up @@ -3370,3 +3372,6 @@ def check_fbits(self, v):
armtop("dsb", [bs('111100111011'), bs('1111'), bs('1000'), bs('1111'), bs('0100'), barrier_option])

armtop("adr", [bs('11110'), imm12_1, bs('100000'), bs('1111'), bs('0'), imm12_3, rd, imm12_8_t4], [rd, imm12_8_t4])


armtop("teq", [bs('111010101001'), rn_noarg, bs('0'), imm3_noarg, bs('1111'), imm2_noarg, imm_stype, rm_noarg])
2 changes: 1 addition & 1 deletion miasm/arch/arm/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def block2assignblks(self, block):

if instr.name.startswith("IT"):
assignments = []
label = self.ir_arch.get_instr_label(instr)
label = self.ir_arch.get_loc_key_for_instr(instr)
irblocks = []
index, irblocks = self.ir_arch.do_it_block(label, index, block, assignments, True)
irblocks_list += irblocks
Expand Down

0 comments on commit 6454de0

Please sign in to comment.