This is an automated email from Gerrit.

"Samuel Obuch <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9533

-- gerrit

commit 4a42ea1ec56a1c9f357b2b94100b8ec065ce27ef
Author: Samuel Obuch <[email protected]>
Date:   Tue Mar 17 20:12:26 2026 +0100

    helper: replacements: only generate x86 assembly for x86 targets
    
    Needed for example to build for Windows-ARM64 with MinGW
    
    Checkpatch-ignore: ARCH_DEFINES
    
    Change-Id: I6c5e235291c0f3f3ede58bc822dc632f778964b2
    Signed-off-by: Samuel Obuch <[email protected]>

diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index 747c2ae09a..6f3a92de91 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -141,6 +141,7 @@ struct sockaddr_un {
 #endif
 
 #if IS_MINGW == 1
+#if defined(__x86_64__) || defined(__i386__)
 static inline unsigned char inb(unsigned short int port)
 {
        unsigned char _v;
@@ -152,6 +153,7 @@ static inline void outb(unsigned char value, unsigned short 
int port)
 {
        __asm__ __volatile__ ("outb %b0,%w1" : : "a" (value), "Nd" (port));
 }
+#endif
 
 /* mingw does not have ffs, so use gcc builtin types */
 #define ffs __builtin_ffs

-- 

Reply via email to