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

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

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_playstation2.c,v 1.3 2006/01/16 01:45:29 debug Exp $   *  $Id: machine_playstation2.c,v 1.5 2006/06/24 10:19:19 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 116  MACHINE_SETUP(playstation2) Line 116  MACHINE_SETUP(playstation2)
116              PLAYSTATION2_SIFBIOS);              PLAYSTATION2_SIFBIOS);
117          store_buf(cpu, PLAYSTATION2_BDA + 4, "PS2b", 4);          store_buf(cpu, PLAYSTATION2_BDA + 4, "PS2b", 4);
118    
119            /*  "Magic trap" instruction for software PROM emulation:  */
120            store_32bit_word(cpu, PLAYSTATION2_SIFBIOS, 0x00c0de0c);
121    
122          store_32bit_word(cpu, 0xa0000000 + machine->physical_ram_in_mb          store_32bit_word(cpu, 0xa0000000 + machine->physical_ram_in_mb
123              * 1048576 - 0x1000 + 0x4, PLAYSTATION2_OPTARGS);              * 1048576 - 0x1000 + 0x4, PLAYSTATION2_OPTARGS);
124          if (tmp == NULL) {          if (tmp == NULL) {
# Line 173  MACHINE_DEFAULT_RAM(playstation2) Line 176  MACHINE_DEFAULT_RAM(playstation2)
176    
177  MACHINE_REGISTER(playstation2)  MACHINE_REGISTER(playstation2)
178  {  {
179          MR_DEFAULT(playstation2, "Playstation 2", ARCH_MIPS, MACHINE_PS2, 2, 0);          MR_DEFAULT(playstation2, "Playstation 2", ARCH_MIPS, MACHINE_PS2);
180          me->aliases[0] = "playstation2";  
181          me->aliases[1] = "ps2";          machine_entry_add_alias(me, "playstation2");
182            machine_entry_add_alias(me, "ps2");
183    
184          me->set_default_ram = machine_default_ram_playstation2;          me->set_default_ram = machine_default_ram_playstation2;
         machine_entry_add(me, ARCH_MIPS);  
185  }  }
186    

Legend:
Removed from v.22  
changed lines
  Added in v.26

  ViewVC Help
Powered by ViewVC 1.1.26