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> |
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 |
|
|
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 |
|
|