Re: [PATCH][AArch32] Add support for HLT to Mixed Mode models

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Feb  7 16:05, Tamar Christina wrote:
> Hi All,
> 
> The Semihosting v2 protocol requires us to output the Armv8-a HLT instruction
> when in mixed mode (SEMIHOST_V2_MIXED_MODE), however it also requires this to
> be done for Armv7-a and earlier architectures.
> 
> The HLT instruction is defined in the undefined encoding space for older
> architectures but simulators such as QEMU already trap on it [1] for all
> architectures and is a requirement for semihosting v2 [2]
> 
> Unfortunately the GAS restricts the use of HLT to Armv8-a which requires us to
> use the instruction encodings we want directly in crt0.
> 
> This patch does this, I have not updated newlib/libc/* as that is quite out of
> date already.  A proper sync is needed in order to get things back in sync.
> 
> A different patch for this would be best.
> 
> [1] https://github.com/qemu/qemu/commit/19a6e31c9d2701ef648b70ddcfc3bf64cec8c37e
> [2] https://developer.arm.com/docs/100863/latest/the-semihosting-interface
> 
> Regtested on arm-none-eabi and no issues.
> 
> Ok for trunk?

Sorry, no.

> Thanks,
> Tamar
> 
> libgloss/ChangeLog:
> 
> 2019-02-07  Tamar Christina  <[email protected]>
> 
> 	PR libgloss/24070
> 	* arm/crt0.S: Convert macros to function Macros.
> 	* arm/swi.h (AngelSWI_ARM, AngelSWI): Use raw insn encoding for
> 	SEMIHOST_V2_MIXED_MODE case.
> 	(AngelSWIAsm): Make function.
> 	(AngelSWIInsn, AngelSWIAsm): Use .inst directive as instruction.

Did you have a look into libgloss/ChangeLog lately?  We're using git for
three years now.  Please provide patches in git format-patch format and
provide a normal git log entry explaining what the patch does and why.
We don't do CVS ChangeLogs anymore.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxceEUACgkQ9TYGna5E
T6Aj6RAAlhy1dA6vsbhEnjNjvJFXni+oEJz/ZBKkrP4eoxbKa6SvVS+u2gR83XOx
jIWVZeBTUiNINc76TWZLyoehG/PLj/r7qlJLDtDTgWlWcFkOzOBVj11G/WgOAyHd
TuVCXDHTtA5HgY/PVuXtZN8eVPZMOxrgbjr8LrE8DK5/faN2sQ4slJtIgz2RlV7M
LzMBwyslCR862GhCLbwE81XtezvP0Rox9YsaJVLyNw41dqX21JCztebguoDoPj76
Ok6rp7/CdtykoxnrWdJbpUdTDA1gM64pNuJA5K0rWr/BhJ2nsd2tP//PFMkiuLDF
pW/oYw+0N9P8tPIbwObxbnRN0LoPp+Ah4dSBPij+lXnCToafx7J7FUTSWJdmB/yO
vjABC2YtSQU93E1xCPrj+Y4o8RJKO9YFmAQBYkW1jCx3LsnEA7tUi6wnvwbfWC6t
iz0rMnE3axmpDut7NhTk6TFLM4yn1ZWw1G707dkVBW3mQCGOX9bSLlTB+x/L5OXn
r8eOr15Gfh/rsX9B3wcMu76Rnyl/gRPMxxjvF7MRaV9YU3Ha9TAUNegDgDdUujC9
mph5YRSNV1iyRVg5GvLMO2yYoQXujkNoUXfRR86ir/7YLzBSQdksgRwjEm/inKLS
HVkOcQPgT2ltDJmsPiqVbdCDCXVCwVkySI+LuVaj6sKs1vOxGjU=
=gsfk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.