This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Arm semihosting v2 implementation isn't complete
- From: Tamar Christina <Tamar dot Christina at arm dot com>
- To: Alexander Fedotov <alfedotov at gmail dot com>, Newlib <newlib at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Tue, 18 Dec 2018 13:50:22 +0000
- Subject: RE: Arm semihosting v2 implementation isn't complete
- References: <CAN8C2CpEFMVy-F0SMRxg96JxrjecWLnSLOegSj2NgQnHK3ksUg@mail.gmail.com>
Hi Alex
> -----Original Message-----
> From: newlib-owner@sourceware.org <newlib-owner@sourceware.org> On
> Behalf Of Alexander Fedotov
> Sent: Tuesday, December 18, 2018 13:08
> To: Newlib <newlib@sourceware.org>
> Subject: Arm semihosting v2 implementation isn't complete
>
> Hi all
>
> I see that number of commits were dedicated to changes for Arm
> Semihosting v2 specification that states:
> ARM encourages semihosting callers to implement support for trapping using
> HLT on A32 and T32 as a configurable option. ARM strongly discourages
> semihosting callers from mixing the HLT and SVC mechanisms within the
> same executable.
>
> At the moment there is no HLT instruction used in libgloss/arm.
There is, see swi.h, we don't support mixing of HLT and SVC (as mentioned in the specification bit you quoted) so they are in different libraries.
HLT is used when you used the MIXED_MODE spec files. E.g. aprofile-validation-v2m.specs will use HLT and aprofile-validation.specs uses SVC.
Regards,
Tamar
>
> So the question is: is there any reason to not have HLT right now ?
>
> Alex