/[gxemul]/trunk/src/machines/machine_macppc.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/machines/machine_macppc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_macppc.c,v 1.3 2006/02/02 19:30:14 debug Exp $   *  $Id: machine_macppc.c,v 1.4 2006/03/24 05:53:17 debug Exp $
29     *
30     *  NOTE: Currently, these are skeletons for generic PowerMac G3, G4, and G5
31     *        systems. They do not model real PowerMacs, but should be enough to
32     *        begin experimenting with NetBSD/macppc and OpenBSD/macppc.
33   */   */
34    
35  #include <stdio.h>  #include <stdio.h>
# Line 154  MACHINE_SETUP(macppc) Line 158  MACHINE_SETUP(macppc)
158  MACHINE_DEFAULT_CPU(macppc)  MACHINE_DEFAULT_CPU(macppc)
159  {  {
160          switch (machine->machine_subtype) {          switch (machine->machine_subtype) {
161          case MACHINE_MACPPC_G4:          case MACHINE_MACPPC_G3:
162                  machine->cpu_name = strdup("PPC750");                  machine->cpu_name = strdup("PPC750");
163                  break;                  break;
164            case MACHINE_MACPPC_G4:
165                    machine->cpu_name = strdup("MPC7400");
166                    break;
167          case MACHINE_MACPPC_G5:          case MACHINE_MACPPC_G5:
168                  machine->cpu_name = strdup("PPC970");                  machine->cpu_name = strdup("PPC970");
169                  break;                  break;
# Line 172  MACHINE_DEFAULT_RAM(macppc) Line 179  MACHINE_DEFAULT_RAM(macppc)
179    
180  MACHINE_REGISTER(macppc)  MACHINE_REGISTER(macppc)
181  {  {
182          MR_DEFAULT(macppc, "Macintosh", ARCH_PPC, MACHINE_MACPPC, 1, 2);          MR_DEFAULT(macppc, "Macintosh", ARCH_PPC, MACHINE_MACPPC, 1, 3);
183          me->aliases[0] = "macppc";          me->aliases[0] = "macppc";
184          me->subtype[0] = machine_entry_subtype_new("MacPPC G4",          me->subtype[0] = machine_entry_subtype_new("MacPPC G3",
185                MACHINE_MACPPC_G3, 1);
186            me->subtype[0]->aliases[0] = "g3";
187            me->subtype[1] = machine_entry_subtype_new("MacPPC G4",
188              MACHINE_MACPPC_G4, 1);              MACHINE_MACPPC_G4, 1);
189          me->subtype[0]->aliases[0] = "g4";          me->subtype[1]->aliases[0] = "g4";
190          me->subtype[1] = machine_entry_subtype_new("MacPPC G5",          me->subtype[2] = machine_entry_subtype_new("MacPPC G5",
191              MACHINE_MACPPC_G5, 1);              MACHINE_MACPPC_G5, 1);
192          me->subtype[1]->aliases[0] = "g5";          me->subtype[2]->aliases[0] = "g5";
193          me->set_default_ram = machine_default_ram_macppc;          me->set_default_ram = machine_default_ram_macppc;
194          machine_entry_add(me, ARCH_PPC);          machine_entry_add(me, ARCH_PPC);
195  }  }

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26