--- trunk/src/machines/machine_sparc.c 2007/10/08 16:21:26 35 +++ trunk/src/machines/machine_sparc.c 2007/10/08 16:21:34 36 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: machine_sparc.c,v 1.4 2006/12/30 13:31:02 debug Exp $ + * $Id: machine_sparc.c,v 1.5 2007/03/15 15:42:58 debug Exp $ * * SPARC machines. */ @@ -66,6 +66,11 @@ break; + case MACHINE_SPARC_SUN4V: + machine->machine_name = "SUN Generic sun4v"; + + break; + default:fatal("Unimplemented SPARC machine subtype %i\n", machine->machine_subtype); exit(1); @@ -97,6 +102,10 @@ machine->cpu_name = strdup("UltraSPARC-II"); break; + case MACHINE_SPARC_SUN4V: + machine->cpu_name = strdup("T1"); + break; + default:fatal("Unimplemented SPARC machine subtype %i\n", machine->machine_subtype); exit(1); @@ -128,6 +137,9 @@ machine_entry_add_subtype(me, "SUN Ultra60", MACHINE_SPARC_ULTRA60, "ultra60", NULL); + machine_entry_add_subtype(me, "SUN Generic sun4v", MACHINE_SPARC_SUN4V, + "sun4v", NULL); + me->set_default_ram = machine_default_ram_sparc; }