[PATCH][Binutils][Arm] Backport hlt to all architectures.
Tamar Christina
Tamar.Christina@arm.com
Thu Feb 7 15:49:00 GMT 2019
More information about the Binutils mailing list
Thu Feb 7 15:49:00 GMT 2019
- Previous message (by thread): [PATCH 1/2] binutils/size: Update example output in documentation
- Next message (by thread): [PATCH][Binutils][Arm] Backport hlt to all architectures.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi All, The software trap instruction HLT that was introduced in Armv8-a is used as the semihosting trap instruction in AArch64. In order to allow systems configured to run AArch64 code to also run AArch32 with semihosting it was decided that AArch32 should also use HLT in the case of the "mixed mode" environment. This requires that HLT also be backported to all earlier architectures. The instruction is in the undefined encoding space earlier architectures but must trigger a semihosting trap [3]. The Arm Architectural Reference Manual [1] doesn't explicitly mention this however this is an explicit requirement in the Semihosting-v2 protocol [2]. [1] https://developer.arm.com/docs/ddi0487/latest/arm-architecture-reference-manual-armv8-for-armv8-a-architecture-profile [2] https://developer.arm.com/docs/100863/latest/the-semihosting-interface [3] https://github.com/qemu/qemu/commit/19a6e31c9d2701ef648b70ddcfc3bf64cec8c37e build on native hardware and regtested on arm-none-elf, arm-none-elf (32 bit host), arm-none-linux-gnueabihf, arm-none-linux-gnueabihf (32 bit host) Cross-compiled and regtested on arm-none-linux-gnueabihf, armeb-none-elf, arm-wince-pe and no issues. Ok for master? and for backport to binutils-2.32? Thanks, Tamar gas/ChangeLog: 2019-02-07 Tamar Christina <tamar.christina@arm.com> * config/tc-arm.c (insns): Redefine THUMB_VARIANT and ARM_VARIANT for hlt to armv1. * testsuite/gas/arm/armv8a-automatic-hlt.d: Update TAGs * testsuite/gas/arm/hlt.d: New test. * testsuite/gas/arm/hlt.s: New test. opcodes/ChangeLog: 2019-02-07 Tamar Christina <tamar.christina@arm.com> * arm-dis.c (arm_opcodes): Redefine hlt to armv1. -- -------------- next part -------------- A non-text attachment was scrubbed... Name: rb10667.patch Type: text/x-diff Size: 4093 bytes Desc: rb10667.patch URL: <https://sourceware.org/pipermail/binutils/attachments/20190207/dbea59e0/attachment.bin>
- Previous message (by thread): [PATCH 1/2] binutils/size: Update example output in documentation
- Next message (by thread): [PATCH][Binutils][Arm] Backport hlt to all architectures.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list