]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-config.h
sim: punt x86-specific bswap logic
[thirdparty/binutils-gdb.git] / sim / common / sim-config.h
index 4dfc72329485138ab99cc30a881d24a74b5aceef..4bfcdc9e248e69134ab2726eb46eaa132339b726 100644 (file)
 # define HOST_BYTE_ORDER BFD_ENDIAN_LITTLE
 #endif
 
-#if (defined (__i486__) || defined (__i586__) || defined (__i686__)) && defined(__GNUC__) && WITH_BSWAP
-#undef  htonl
-#undef  ntohl
-#define htonl(IN) __extension__ ({ int _out; __asm__ ("bswap %0" : "=r" (_out) : "0" (IN)); _out; })
-#define ntohl(IN) __extension__ ({ int _out; __asm__ ("bswap %0" : "=r" (_out) : "0" (IN)); _out; })
-#endif
-\f
+
 /* Until devices and tree properties are sorted out, tell sim-config.c
    not to call the tree_find_foo fns.  */
 #define WITH_TREE_PROPERTIES 0
@@ -86,16 +80,6 @@ extern enum bfd_endian current_target_byte_order;
 
 
 
-/* Intel host BSWAP support:
-
-   Whether to use bswap on the 486 and pentiums rather than the 386
-   sequence that uses xchgb/rorl/xchgb */
-#ifndef WITH_BSWAP
-#define        WITH_BSWAP 0
-#endif
-
-
-
 /* SMP support:
 
    Sets a limit on the number of processors that can be simulated.  If