/[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 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC revision 44 by dpavlin, Mon Oct 8 16:22:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_evbmips.c,v 1.27 2007/06/15 18:08:10 debug Exp $   *  $Id: machine_evbmips.c,v 1.30 2007/06/17 02:17:45 debug Exp $
29   *   *
30   *  COMMENT: MIPS evaluation boards (e.g. Malta)   *  COMMENT: MIPS evaluation boards (e.g. Malta)
31   */   */
# Line 55  MACHINE_SETUP(evbmips) Line 55  MACHINE_SETUP(evbmips)
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    
59          case MACHINE_EVBMIPS_MALTA:          case MACHINE_EVBMIPS_MALTA:
60          case MACHINE_EVBMIPS_MALTA_BE:          case MACHINE_EVBMIPS_MALTA_BE:
61                  if (machine->emulated_hz == 0)                  if (machine->emulated_hz == 0)
# Line 140  MACHINE_SETUP(evbmips) Line 141  MACHINE_SETUP(evbmips)
141          cpu->cd.mips.gpr[MIPS_GPR_A3] = machine->physical_ram_in_mb * 1048576;          cpu->cd.mips.gpr[MIPS_GPR_A3] = machine->physical_ram_in_mb * 1048576;
142          /*  Hm. Linux ignores a3.  */          /*  Hm. Linux ignores a3.  */
143    
144          /*          /*  Set the Core ID. See maltareg.h for more info.  */
          *  TODO:  
          *      Core ID numbers.  
          *      How much of this is not valid for PBxxxx?  
          *  
          *  See maltareg.h for more info.  
          */  
145          store_32bit_word(cpu, (int32_t)(0x80000000 + MALTA_REVISION),          store_32bit_word(cpu, (int32_t)(0x80000000 + MALTA_REVISION),
146              (1 << 10) + 0x26);              (1 << 10) + 0x26);
147    
# Line 180  MACHINE_DEFAULT_CPU(evbmips) Line 175  MACHINE_DEFAULT_CPU(evbmips)
175    
176  MACHINE_DEFAULT_RAM(evbmips)  MACHINE_DEFAULT_RAM(evbmips)
177  {  {
178          machine->physical_ram_in_mb = 64;          machine->physical_ram_in_mb = 128;
179  }  }
180    
181    

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

  ViewVC Help
Powered by ViewVC 1.1.26