1 |
/* |
/* |
2 |
* Copyright (C) 2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2006-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_sparc.c,v 1.2 2006/05/17 20:27:31 debug Exp $ |
* $Id: machine_sparc.c,v 1.5 2007/03/15 15:42:58 debug Exp $ |
29 |
* |
* |
30 |
* SPARC machines. |
* SPARC machines. |
31 |
*/ |
*/ |
66 |
|
|
67 |
break; |
break; |
68 |
|
|
69 |
|
case MACHINE_SPARC_SUN4V: |
70 |
|
machine->machine_name = "SUN Generic sun4v"; |
71 |
|
|
72 |
|
break; |
73 |
|
|
74 |
default:fatal("Unimplemented SPARC machine subtype %i\n", |
default:fatal("Unimplemented SPARC machine subtype %i\n", |
75 |
machine->machine_subtype); |
machine->machine_subtype); |
76 |
exit(1); |
exit(1); |
102 |
machine->cpu_name = strdup("UltraSPARC-II"); |
machine->cpu_name = strdup("UltraSPARC-II"); |
103 |
break; |
break; |
104 |
|
|
105 |
|
case MACHINE_SPARC_SUN4V: |
106 |
|
machine->cpu_name = strdup("T1"); |
107 |
|
break; |
108 |
|
|
109 |
default:fatal("Unimplemented SPARC machine subtype %i\n", |
default:fatal("Unimplemented SPARC machine subtype %i\n", |
110 |
machine->machine_subtype); |
machine->machine_subtype); |
111 |
exit(1); |
exit(1); |
121 |
|
|
122 |
MACHINE_REGISTER(sparc) |
MACHINE_REGISTER(sparc) |
123 |
{ |
{ |
124 |
MR_DEFAULT(sparc, "SPARC", ARCH_SPARC, MACHINE_SPARC, 1, 4); |
MR_DEFAULT(sparc, "SPARC", ARCH_SPARC, MACHINE_SPARC); |
125 |
|
|
126 |
me->aliases[0] = "sparc"; |
machine_entry_add_alias(me, "sparc"); |
127 |
|
|
128 |
me->subtype[0] = machine_entry_subtype_new( |
machine_entry_add_subtype(me, "SUN SPARCstation 5", MACHINE_SPARC_SS5, |
129 |
"SUN SPARCstation 5", MACHINE_SPARC_SS5, 1); |
"ss5", "sparcstation5", NULL); |
|
me->subtype[0]->aliases[0] = "ss5"; |
|
130 |
|
|
131 |
me->subtype[1] = machine_entry_subtype_new( |
machine_entry_add_subtype(me, "SUN SPARCstation 20", MACHINE_SPARC_SS20, |
132 |
"SUN SPARCstation 20", MACHINE_SPARC_SS20, 1); |
"ss20", "sparcstation20", NULL); |
|
me->subtype[1]->aliases[0] = "ss20"; |
|
133 |
|
|
134 |
me->subtype[2] = machine_entry_subtype_new( |
machine_entry_add_subtype(me, "SUN Ultra1", MACHINE_SPARC_ULTRA1, |
135 |
"SUN Ultra1", MACHINE_SPARC_ULTRA1, 1); |
"ultra1", NULL); |
|
me->subtype[2]->aliases[0] = "ultra1"; |
|
136 |
|
|
137 |
me->subtype[3] = machine_entry_subtype_new( |
machine_entry_add_subtype(me, "SUN Ultra60", MACHINE_SPARC_ULTRA60, |
138 |
"SUN Ultra60", MACHINE_SPARC_ULTRA60, 1); |
"ultra60", NULL); |
|
me->subtype[3]->aliases[0] = "ultra60"; |
|
139 |
|
|
140 |
me->set_default_ram = machine_default_ram_sparc; |
machine_entry_add_subtype(me, "SUN Generic sun4v", MACHINE_SPARC_SUN4V, |
141 |
|
"sun4v", NULL); |
142 |
|
|
143 |
machine_entry_add(me, ARCH_SPARC); |
me->set_default_ram = machine_default_ram_sparc; |
144 |
} |
} |
145 |
|
|