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

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

revision 31 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_hpcsh.c,v 1.2 2006/06/24 10:19:19 debug Exp $   *  $Id: machine_hpcsh.c,v 1.6 2006/10/19 10:15:57 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 64  MACHINE_SETUP(hpcsh) Line 64  MACHINE_SETUP(hpcsh)
64  */  */
65          machine->machine_name = "HPCsh";          machine->machine_name = "HPCsh";
66          cpu->byte_order = EMUL_LITTLE_ENDIAN;          cpu->byte_order = EMUL_LITTLE_ENDIAN;
67    
68            if (!machine->use_x11)
69                    fprintf(stderr, "-------------------------------------"
70                        "------------------------------------------\n"
71                        "\n  WARNING!  You are emulating a Dreamcast without -X."
72                        "\n            You will miss graphical output!\n\n"
73                        "-------------------------------------"
74                        "------------------------------------------\n");
75    
76            /*  32 MB in two parts, each included twice (shadowed):  */
77            dev_ram_init(machine, 0x0c000000, 0x01000000, DEV_RAM_MIRROR, 0x0);
78            dev_ram_init(machine, 0x0d000000, 0x01000000, DEV_RAM_MIRROR, 0x0);
79            dev_ram_init(machine, 0x0e000000, 0x01000000, DEV_RAM_MIRROR,
80                0x01000000);
81            dev_ram_init(machine, 0x0f000000, 0x01000000, DEV_RAM_MIRROR,
82                0x01000000);
83    
84            dev_fb_init(machine, machine->memory, 0x10000000,
85                VFB_HPC, 640,240, 640,240, 16, machine->machine_name);
86  }  }
87    
88    
89  MACHINE_DEFAULT_CPU(hpcsh)  MACHINE_DEFAULT_CPU(hpcsh)
90  {  {
91          machine->cpu_name = strdup("SH");          machine->cpu_name = strdup("SH7750");
92    }
93    
94    
95    MACHINE_DEFAULT_RAM(hpcsh)
96    {
97            /*  TODO: Model dependent. */
98            machine->physical_ram_in_mb = 32;
99  }  }
100    
101    
# Line 84  MACHINE_REGISTER(hpcsh) Line 110  MACHINE_REGISTER(hpcsh)
110    
111          machine_entry_add_subtype(me, "Jornada 690",          machine_entry_add_subtype(me, "Jornada 690",
112              MACHINE_HPCSH_JORNADA690, "jornada690", NULL);              MACHINE_HPCSH_JORNADA690, "jornada690", NULL);
113    
114            me->set_default_ram = machine_default_ram_hpcsh;
115  }  }
116    

Legend:
Removed from v.31  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26