4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
35 assign_arch(const char *architecture
)
40 if (strcmp(architecture
, "sparc") == 0)
42 else if (strcmp(architecture
, "ISA") == 0)
44 else if (strcmp(architecture
, "all") == 0)
46 else if (strcmp(architecture
, "sparc.sun4") == 0)
48 else if (strcmp(architecture
, "sparc.sun4c") == 0)
50 else if (strcmp(architecture
, "sparc.sun4u") == 0)
52 else if (strcmp(architecture
, "sparc.sun4d") == 0)
54 else if (strcmp(architecture
, "sparc.sun4e") == 0)
56 else if (strcmp(architecture
, "sparc.sun4m") == 0)
58 else if (strcmp(architecture
, "sparc.sun4v") == 0)
61 if (strcmp(architecture
, "i386") == 0)
63 else if (strcmp(architecture
, "ISA") == 0)
65 else if (strcmp(architecture
, "all") == 0)
67 else if (strcmp(architecture
, "i386.i86pc") == 0)
70 if (strcmp(architecture
, "ppc") == 0)
72 else if (strcmp(architecture
, "ISA") == 0)
74 else if (strcmp(architecture
, "all") == 0)
76 else if (strcmp(architecture
, "ppc.prep") == 0)
79 #error "Unknown instruction set"