From 0287c9636fe0328cc572a959e3ef04e964e6e36e Mon Sep 17 00:00:00 2001 From: elicn Date: Mon, 30 May 2022 18:30:49 +0300 Subject: [PATCH] Remove ARM endian workaround --- qiling/arch/arm.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qiling/arch/arm.py b/qiling/arch/arm.py index 130d93e8..394258f7 100644 --- a/qiling/arch/arm.py +++ b/qiling/arch/arm.py @@ -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: