Skip to content

Commit

Permalink
Merge pull request #1496 from AeonLucid/fix/aarch64_immhi_page
Browse files Browse the repository at this point in the history
Fix typo in aarch64_immhi_page decode
  • Loading branch information
serpilliere authored Aug 20, 2024
2 parents 7ffe286 + 3609819 commit 243e4f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion miasm/arch/aarch64/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ def decode(self, v):
def encode(self):
v = int(self.expr)
if v & (1 << 63):
v &= (1 << 33) - 1
v &= (1 << 21) - 1
self.parent.immlo.value = v & 3
v >>= 2
if v > (1 << 19) - 1:
Expand Down
5 changes: 4 additions & 1 deletion test/arch/aarch64/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,10 @@
("XXXXXXXX TLBI 0x0, c7, 0x0, XZR",
"1F8708D5"),
("XXXXXXXX YIELD ",
"3F2003D5")
"3F2003D5"),

("XXXXXXXX ADR X29, 0xFFFFFFFFFFFFFAC8",
"5DD6FF10"),
]


Expand Down

0 comments on commit 243e4f0

Please sign in to comment.