/[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 41 by dpavlin, Mon Oct 8 16:21:53 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_evbmips.c,v 1.20 2007/04/10 16:51:35 debug Exp $   *  $Id: machine_evbmips.c,v 1.27 2007/06/15 18:08:10 debug Exp $
29     *
30     *  COMMENT: MIPS evaluation boards (e.g. Malta)
31   */   */
32    
33  #include <stdio.h>  #include <stdio.h>
# Line 50  MACHINE_SETUP(evbmips) Line 52  MACHINE_SETUP(evbmips)
52          struct pci_data *pci_data;          struct pci_data *pci_data;
53          int i;          int i;
54    
55          /*  See http://www.netbsd.org/Ports/evbmips/ for more info.  */          /*  See http://www.netbsd.org/ports/evbmips/ for more info.  */
56    
57          switch (machine->machine_subtype) {          switch (machine->machine_subtype) {
58          case MACHINE_EVBMIPS_MALTA:          case MACHINE_EVBMIPS_MALTA:
# Line 59  MACHINE_SETUP(evbmips) Line 61  MACHINE_SETUP(evbmips)
61                          machine->emulated_hz = 33000000;                          machine->emulated_hz = 33000000;
62                  cpu->byte_order = EMUL_LITTLE_ENDIAN;                  cpu->byte_order = EMUL_LITTLE_ENDIAN;
63                  machine->machine_name = "MALTA (evbmips, little endian)";                  machine->machine_name = "MALTA (evbmips, little endian)";
                 machine->stable = 1;  
64    
65                  if (machine->machine_subtype == MACHINE_EVBMIPS_MALTA_BE) {                  if (machine->machine_subtype == MACHINE_EVBMIPS_MALTA_BE) {
66                          machine->machine_name = "MALTA (evbmips, big endian)";                          machine->machine_name = "MALTA (evbmips, big endian)";
# Line 84  MACHINE_SETUP(evbmips) Line 85  MACHINE_SETUP(evbmips)
85                  pci_data = dev_gt_init(machine, machine->memory, 0x1be00000,                  pci_data = dev_gt_init(machine, machine->memory, 0x1be00000,
86                      tmpstr, tmpstr2, 120);                      tmpstr, tmpstr2, 120);
87    
88                  if (machine->use_x11) {                  if (machine->x11_md.in_use) {
89                          if (strlen(machine->boot_string_argument) < 3) {                          if (strlen(machine->boot_string_argument) < 3) {
90                                  fatal("WARNING: remember to use  -o 'console="                                  fatal("WARNING: remember to use  -o 'console="
91                                      "tty0'  if you are emulating Linux. (Not"                                      "tty0'  if you are emulating Linux. (Not"
# Line 167  MACHINE_DEFAULT_CPU(evbmips) Line 168  MACHINE_DEFAULT_CPU(evbmips)
168    
169          case MACHINE_EVBMIPS_MALTA:          case MACHINE_EVBMIPS_MALTA:
170          case MACHINE_EVBMIPS_MALTA_BE:          case MACHINE_EVBMIPS_MALTA_BE:
171                    /*  5Kc = MIPS64 rev 1, 5KE = MIPS64 rev 2  */
172                  machine->cpu_name = strdup("5Kc");                  machine->cpu_name = strdup("5Kc");
173                  break;                  break;
174    
# Line 178  MACHINE_DEFAULT_CPU(evbmips) Line 180  MACHINE_DEFAULT_CPU(evbmips)
180    
181  MACHINE_DEFAULT_RAM(evbmips)  MACHINE_DEFAULT_RAM(evbmips)
182  {  {
         /*  MeshCube is always (?) 64 MB, and the others work fine  
             with 64 MB too.  */  
183          machine->physical_ram_in_mb = 64;          machine->physical_ram_in_mb = 64;
184  }  }
185    

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26