From: Billy Laws <[email protected]>
Signed-off-by: Jacek Caban <[email protected]>
---
mingw-w64-headers/crt/_mingw.h.in | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in
index bc6a3afd3..085d56ff5 100644
--- a/mingw-w64-headers/crt/_mingw.h.in
+++ b/mingw-w64-headers/crt/_mingw.h.in
@@ -594,12 +594,12 @@ extern "C" {
void __cdecl __debugbreak(void);
__MINGW_INTRIN_INLINE void __cdecl __debugbreak(void)
{
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__arm64ec__)
+ __asm__ __volatile__("brk #0xf000");
+#elif defined(__i386__) || defined(__x86_64__)
__asm__ __volatile__("int {$}3":);
#elif defined(__arm__)
__asm__ __volatile__("udf #0xfe");
-#elif defined(__aarch64__)
- __asm__ __volatile__("brk #0xf000");
#else
__asm__ __volatile__("unimplemented");
#endif
@@ -615,14 +615,14 @@ __MINGW_INTRIN_INLINE void __cdecl __debugbreak(void)
void __cdecl __MINGW_ATTRIB_NORETURN __fastfail(unsigned int code);
__MINGW_INTRIN_INLINE void __cdecl __MINGW_ATTRIB_NORETURN __fastfail(unsigned int code)
{
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__arm64ec__)
+ register unsigned int w0 __asm__("w0") = code;
+ __asm__ __volatile__("brk #0xf003"::"r"(w0));
+#elif defined(__i386__) || defined(__x86_64__)
__asm__ __volatile__("int {$}0x29"::"c"(code));
#elif defined(__arm__)
register unsigned int r0 __asm__("r0") = code;
__asm__ __volatile__("udf #0xfb"::"r"(r0));
-#elif defined(__aarch64__)
- register unsigned int w0 __asm__("w0") = code;
- __asm__ __volatile__("brk #0xf003"::"r"(w0));
#else
__asm__ __volatile__("unimplemented");
#endif
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public