about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAeonLucid <aeonlucid@gmail.com>2024-08-03 04:16:26 +0200
committerAeonLucid <aeonlucid@gmail.com>2024-08-03 04:16:26 +0200
commited931ea271685b2060def6ba4a0b003a160b74fd (patch)
treefe245916ae2443dbc3a98ee1871136ccf336d05a
parent3e2201380a6f09c0fd6a859fc3b06c35a2558eba (diff)
downloadmiasm-ed931ea271685b2060def6ba4a0b003a160b74fd.tar.gz
miasm-ed931ea271685b2060def6ba4a0b003a160b74fd.zip
Fix typo in aarch64_immhi_page decode
-rw-r--r--miasm/arch/aarch64/arch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/arch/aarch64/arch.py b/miasm/arch/aarch64/arch.py
index c642d201..5246d920 100644
--- a/miasm/arch/aarch64/arch.py
+++ b/miasm/arch/aarch64/arch.py
@@ -1424,7 +1424,7 @@ class aarch64_immhi_page(aarch64_imm_32):
     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: