mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Remove ARM endian workaround
This commit is contained in:
+1
-11
@@ -57,17 +57,7 @@ class QlArchARM(QlArch):
|
||||
|
||||
@property
|
||||
def endian(self) -> QL_ENDIAN:
|
||||
# FIXME: ARM is a bi-endian architecture which allows flipping core endianess
|
||||
# while running. endianess is tested in runtime through CPSR[9], however unicorn
|
||||
# doesn't reflect the endianess correctly through that bit.
|
||||
# @see: https://github.com/unicorn-engine/unicorn/issues/1542
|
||||
#
|
||||
# we work around this by using the initial endianess configuration, even though
|
||||
# it might have been changed since.
|
||||
#
|
||||
# return QL_ENDIAN.EB if self.regs.cpsr & (1 << 9) else QL_ENDIAN.EL
|
||||
|
||||
return self._init_endian
|
||||
return QL_ENDIAN.EB if self.regs.cpsr & (1 << 9) else QL_ENDIAN.EL
|
||||
|
||||
@property
|
||||
def effective_pc(self) -> int:
|
||||
|
||||
Reference in New Issue
Block a user