OSDN Git Service

Remove unused functions oreo-x86 pie-x86 q-x86 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-8.1-r6 android-x86-9.0-r1 android-x86-9.0-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 27 Feb 2019 08:26:30 +0000 (16:26 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 27 Feb 2019 08:26:30 +0000 (16:26 +0800)
lrmi/x86-common.c
x86emu/sys.c

index 508baa6..1163dcd 100644 (file)
@@ -179,27 +179,6 @@ LRMI_free_real(void *m)
 
 #define DEFAULT_STACK_SIZE     0x1000
 
-static inline void
-set_bit(unsigned int bit, void *array)
-{
-       unsigned char *a = array;
-
-       a[bit / 8] |= (1 << (bit % 8));
-}
-
-static inline unsigned int
-get_int_seg(int i)
-{
-       return *(unsigned short *)(i * 4 + 2);
-}
-
-
-static inline unsigned int
-get_int_off(int i)
-{
-       return *(unsigned short *)(i * 4);
-}
-
 int LRMI_common_init(void)
 {
        void *m;
index 95e4f04..da9e2c5 100644 (file)
@@ -65,14 +65,6 @@ struct __una_u16 {
 
 /* Elemental unaligned loads */
 
-static __inline__ u64
-ldq_u(u64 * p)
-{
-    const struct __una_u64 *ptr = (const struct __una_u64 *) p;
-
-    return ptr->x;
-}
-
 static __inline__ u32
 ldl_u(u32 * p)
 {
@@ -92,14 +84,6 @@ ldw_u(u16 * p)
 /* Elemental unaligned stores */
 
 static __inline__ void
-stq_u(u64 val, u64 * p)
-{
-    struct __una_u64 *ptr = (struct __una_u64 *) p;
-
-    ptr->x = val;
-}
-
-static __inline__ void
 stl_u(u32 val, u32 * p)
 {
     struct __una_u32 *ptr = (struct __una_u32 *) p;
@@ -116,15 +100,6 @@ stw_u(u16 val, u16 * p)
 }
 #else                           /* !__GNUC__ */
 
-static __inline__ u64
-ldq_u(u64 * p)
-{
-    u64 ret;
-
-    memmove(&ret, p, sizeof(*p));
-    return ret;
-}
-
 static __inline__ u32
 ldl_u(u32 * p)
 {
@@ -144,14 +119,6 @@ ldw_u(u16 * p)
 }
 
 static __inline__ void
-stq_u(u64 val, u64 * p)
-{
-    u64 tmp = val;
-
-    memmove(p, &tmp, sizeof(*p));
-}
-
-static __inline__ void
 stl_u(u32 val, u32 * p)
 {
     u32 tmp = val;