[PATCH 10/10] arch: arch_mach is not needed anymore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



arch_target now points to a structure holding all the
arch-specificities. So, arch_mach is not needed anymore.

Remove arch_mach.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 lib.c    | 1 -
 lib.h    | 1 -
 target.c | 2 --
 3 files changed, 4 deletions(-)

diff --git a/lib.c b/lib.c
index 842423c63d25..40e192a7e7cf 100644
--- a/lib.c
+++ b/lib.c
@@ -324,7 +324,6 @@ int arch_msize_long = 0;
 int arch_m64 = ARCH_M64_DEFAULT;
 int arch_big_endian = ARCH_BIG_ENDIAN;
 int arch_fp_abi = FP_ABI_NATIVE;
-int arch_mach = MACH_NATIVE;
 int arch_os = OS_NATIVE;
 int arch_cmodel = CMODEL_UNKNOWN;
 
diff --git a/lib.h b/lib.h
index 290cbc576abe..236235259ab9 100644
--- a/lib.h
+++ b/lib.h
@@ -209,7 +209,6 @@ extern int arch_msize_long;
 extern int arch_m64;
 extern int arch_big_endian;
 extern int arch_fp_abi;
-extern int arch_mach;
 extern int arch_os;
 
 enum {
diff --git a/target.c b/target.c
index 1c7a40836175..abfa975672b1 100644
--- a/target.c
+++ b/target.c
@@ -134,7 +134,6 @@ void target_config(enum machine mach)
 	const struct target *target = targets[mach];
 
 	arch_target = target;
-	arch_mach = target->mach;
 	arch_m64 = target->bitness;
 	arch_big_endian = target->big_endian;
 
@@ -179,7 +178,6 @@ void target_init(void)
 		break;
 	}
 	arch_target = target;
-	arch_mach = target->mach;
 
 	if (fpie > fpic)
 		fpic = fpie;
-- 
2.24.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux