configure.target: Remove mips from cpu table.
2001-07-30 Benjamin Kosnik <bkoz@redhat.com> * configure.target: Remove mips from cpu table. * config/cpu/mips/bits/atomicity.h: Remove generic versions. Comment sgidefs include. From-SVN: r44493
This commit is contained in:
parent
f18bff15c9
commit
3fe670a469
@ -1,3 +1,9 @@
|
|||||||
|
2001-07-30 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* configure.target: Remove mips from cpu table.
|
||||||
|
* config/cpu/mips/bits/atomicity.h: Remove generic
|
||||||
|
versions. Comment sgidefs include.
|
||||||
|
|
||||||
2001-07-25 H.J. Lu <hjl@gnu.org>
|
2001-07-25 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* configure.target (cpu_include_dir): Set to `config/cpu/mips'
|
* configure.target (cpu_include_dir): Set to `config/cpu/mips'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Low-level functions for atomic operations. Mips version.
|
// Low-level functions for atomic operations. MIPS II version.
|
||||||
|
|
||||||
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
@ -30,12 +30,11 @@
|
|||||||
#ifndef _BITS_ATOMICITY_H
|
#ifndef _BITS_ATOMICITY_H
|
||||||
#define _BITS_ATOMICITY_H 1
|
#define _BITS_ATOMICITY_H 1
|
||||||
|
|
||||||
#include <sgidefs.h>
|
// #include <sgidefs.h>
|
||||||
|
// #ifdef (_MIPS_ISA_MIPS2)
|
||||||
|
|
||||||
typedef int _Atomic_word;
|
typedef int _Atomic_word;
|
||||||
|
|
||||||
#if (_MIPS_ISA >= _MIPS_ISA_MIPS2)
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
__attribute__ ((unused))
|
__attribute__ ((unused))
|
||||||
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
||||||
@ -103,36 +102,4 @@ __compare_and_swap (volatile long int *__p, long int __oldval,
|
|||||||
return __ret;
|
return __ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* (_MIPS_ISA >= _MIPS_ISA_MIPS2) */
|
|
||||||
|
|
||||||
static inline int
|
|
||||||
__attribute__ ((unused))
|
|
||||||
__exchange_and_add (volatile _Atomic_word *__mem, int __val)
|
|
||||||
{
|
|
||||||
int __result = *__mem;
|
|
||||||
*__mem += __val;
|
|
||||||
return __result;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
|
||||||
__attribute__ ((unused))
|
|
||||||
__atomic_add (volatile _Atomic_word *__mem, int __val)
|
|
||||||
{
|
|
||||||
*__mem += __val;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int
|
|
||||||
__attribute__ ((unused))
|
|
||||||
__compare_and_swap (volatile long int *__p, long int __oldval,
|
|
||||||
long int __newval)
|
|
||||||
{
|
|
||||||
if (*__p != __oldval)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
*__p = __newval;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* !(_MIPS_ISA >= _MIPS_ISA_MIPS2) */
|
|
||||||
|
|
||||||
#endif /* atomicity.h */
|
#endif /* atomicity.h */
|
||||||
|
@ -39,9 +39,6 @@ case "${target_cpu}" in
|
|||||||
i486 | i586 | i686 | i786)
|
i486 | i586 | i686 | i786)
|
||||||
cpu_include_dir="config/cpu/i486"
|
cpu_include_dir="config/cpu/i486"
|
||||||
;;
|
;;
|
||||||
mips*)
|
|
||||||
cpu_include_dir="config/cpu/mips"
|
|
||||||
;;
|
|
||||||
powerpc | rs6000)
|
powerpc | rs6000)
|
||||||
cpu_include_dir="config/cpu/powerpc"
|
cpu_include_dir="config/cpu/powerpc"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user