/[gxemul]/trunk/src/machines/machine_evbmips.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_evbmips.c

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

revision 37 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 38 by dpavlin, Mon Oct 8 16:21:53 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_evbmips.c,v 1.19 2007/01/28 00:41:17 debug Exp $   *  $Id: machine_evbmips.c,v 1.20 2007/04/10 16:51:35 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 106  MACHINE_SETUP(evbmips) Line 106  MACHINE_SETUP(evbmips)
106                  device_add(machine, "malta_lcd addr=0x1f000400");                  device_add(machine, "malta_lcd addr=0x1f000400");
107                  break;                  break;
108    
         case MACHINE_EVBMIPS_MESHCUBE:  
                 machine->machine_name = "Meshcube";  
   
                 /*  See: http://mail-index.netbsd.org/port-evbmips/2006/  
                     02/23/0000.html  */  
   
                 if (machine->physical_ram_in_mb != 64)  
                         fprintf(stderr, "WARNING! MeshCubes are supposed to "  
                             "have exactly 64 MB RAM. Continuing anyway.\n");  
                 if (machine->use_x11)  
                         fprintf(stderr, "WARNING! MeshCube with -X is "  
                             "meaningless. Continuing anyway.\n");  
   
                 /*  First of all, the MeshCube has an Au1500 in it:  */  
                 device_add(machine, "au1x00");  
   
                 /*  
                  *  TODO:  Which non-Au1500 devices, and at what addresses?  
                  *  
                  *  "4G Systems MTX-1 Board" at ?  
                  *      1017fffc, 14005004, 11700000, 11700008, 11900014,  
                  *      1190002c, 11900100, 11900108, 1190010c,  
                  *      10400040 - 10400074,  
                  *      14001000 (possibly LCD?)  
                  *      11100028 (possibly ttySx?)  
                  *  
                  *  "usb_ohci=base:0x10100000,len:0x100000,irq:26"  
                  */  
   
                 /*  Linux reads this during startup...  */  
                 device_add(machine, "random addr=0x1017fffc len=4");  
   
                 break;  
   
         case MACHINE_EVBMIPS_PB1000:  
                 machine->machine_name = "PB1000 (evbmips)";  
                 cpu->byte_order = EMUL_BIG_ENDIAN;  
   
                 device_add(machine, "au1x00");  
   
                 /*  TODO  */  
                 break;  
   
109          default:fatal("Unimplemented EVBMIPS model.\n");          default:fatal("Unimplemented EVBMIPS model.\n");
110                  exit(1);                  exit(1);
111          }          }
# Line 207  MACHINE_SETUP(evbmips) Line 164  MACHINE_SETUP(evbmips)
164  MACHINE_DEFAULT_CPU(evbmips)  MACHINE_DEFAULT_CPU(evbmips)
165  {  {
166          switch (machine->machine_subtype) {          switch (machine->machine_subtype) {
167    
168          case MACHINE_EVBMIPS_MALTA:          case MACHINE_EVBMIPS_MALTA:
169          case MACHINE_EVBMIPS_MALTA_BE:          case MACHINE_EVBMIPS_MALTA_BE:
170                  machine->cpu_name = strdup("5Kc");                  machine->cpu_name = strdup("5Kc");
171                  break;                  break;
172          case MACHINE_EVBMIPS_MESHCUBE:  
                 machine->cpu_name = strdup("AU1500");  
                 break;  
         case MACHINE_EVBMIPS_PB1000:  
                 machine->cpu_name = strdup("AU1000");  
                 break;  
173          default:fatal("Unimplemented evbmips subtype.\n");          default:fatal("Unimplemented evbmips subtype.\n");
174                  exit(1);                  exit(1);
175          }          }
# Line 244  MACHINE_REGISTER(evbmips) Line 197  MACHINE_REGISTER(evbmips)
197          machine_entry_add_subtype(me, "Malta (Big-Endian)",          machine_entry_add_subtype(me, "Malta (Big-Endian)",
198              MACHINE_EVBMIPS_MALTA_BE, "maltabe", NULL);              MACHINE_EVBMIPS_MALTA_BE, "maltabe", NULL);
199    
         machine_entry_add_subtype(me, "MeshCube", MACHINE_EVBMIPS_MESHCUBE,  
             "meshcube", NULL);  
   
         machine_entry_add_subtype(me, "PB1000", MACHINE_EVBMIPS_PB1000,  
             "pb1000", NULL);  
   
200          me->set_default_ram = machine_default_ram_evbmips;          me->set_default_ram = machine_default_ram_evbmips;
201  }  }
202    

Legend:
Removed from v.37  
changed lines
  Added in v.38

  ViewVC Help
Powered by ViewVC 1.1.26