Skip to content

Commit 0287c96

Browse files
committed
Remove ARM endian workaround
1 parent c01471a commit 0287c96

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

qiling/arch/arm.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,7 @@ def is_thumb(self) -> bool:
5757

5858
@property
5959
def endian(self) -> QL_ENDIAN:
60-
# FIXME: ARM is a bi-endian architecture which allows flipping core endianess
61-
# while running. endianess is tested in runtime through CPSR[9], however unicorn
62-
# doesn't reflect the endianess correctly through that bit.
63-
# @see: https://github.com/unicorn-engine/unicorn/issues/1542
64-
#
65-
# we work around this by using the initial endianess configuration, even though
66-
# it might have been changed since.
67-
#
68-
# return QL_ENDIAN.EB if self.regs.cpsr & (1 << 9) else QL_ENDIAN.EL
69-
70-
return self._init_endian
60+
return QL_ENDIAN.EB if self.regs.cpsr & (1 << 9) else QL_ENDIAN.EL
7161

7262
@property
7363
def effective_pc(self) -> int:

0 commit comments

Comments
 (0)