44 #define PLAYSTATION2_BDA 0xffffffffa0001000ULL 45 #define PLAYSTATION2_OPTARGS 0xffffffff81fff100ULL 46 #define PLAYSTATION2_SIFBIOS 0xffffffffbfc10000ULL 49 static int int_to_bcd(
int i)
51 return (i/10) * 16 + (i % 10);
67 fprintf(stderr,
"WARNING! Playstation 2 machines are supposed " 68 "to have exactly 32 MB RAM. Continuing anyway.\n");
70 fprintf(stderr,
"WARNING! Playstation 2 without -X is pretty " 71 "meaningless. Continuing anyway.\n");
95 snprintf(tmpstr,
sizeof(tmpstr),
"ohci addr=0x1f801600 irq=" 105 physical_ram_in_mb*1048576 - 0x1000 + 0x0, 0x100);
128 strlcpy(tmp,
"root=/dev/hda1 crtmode=vesa0,60", tmplen);
133 tmp[tmplen-1] =
'\0';
141 timet = time(NULL) + 9*3600;
142 tm_ptr = gmtime(&timet);
145 * 1048576 - 0x1000 + 0x10 + 1, int_to_bcd(tm_ptr->tm_sec));
147 * 1048576 - 0x1000 + 0x10 + 2, int_to_bcd(tm_ptr->tm_min));
149 * 1048576 - 0x1000 + 0x10 + 3, int_to_bcd(tm_ptr->tm_hour));
151 * 1048576 - 0x1000 + 0x10 + 5, int_to_bcd(tm_ptr->tm_mday));
153 * 1048576 - 0x1000 + 0x10 + 6, int_to_bcd(tm_ptr->tm_mon+1));
155 * 1048576 - 0x1000 + 0x10 + 7, int_to_bcd(tm_ptr->tm_year-100));
160 * 1048576 - 0x1000 + 0x1c, 2);
183 me->set_default_ram = machine_default_ram_playstation2;
int store_32bit_word(struct cpu *cpu, uint64_t addr, uint64_t data32)
int diskimage_exist(struct machine *machine, int id, int type)
void store_string(struct cpu *cpu, uint64_t addr, const char *s)
MACHINE_DEFAULT_CPU(playstation2)
void * device_add(struct machine *machine, const char *name_and_params)
#define EMUL_LITTLE_ENDIAN
char * boot_string_argument
#define CHECK_ALLOCATION(ptr)
void dev_ram_init(struct machine *machine, uint64_t baseaddr, uint64_t length, int mode, uint64_t otheraddress, const char *name)
void machine_entry_add_alias(struct machine_entry *me, const char *name)
#define PLAYSTATION2_OPTARGS
void add_symbol_name(struct symbol_context *, uint64_t addr, uint64_t len, const char *name, int type, int n_args)
void COMBINE() strlen(struct cpu *cpu, struct arm_instr_call *ic, int low_addr)
MACHINE_REGISTER(playstation2)
struct symbol_context symbol_context
void store_byte(struct cpu *cpu, uint64_t addr, uint8_t data)
MACHINE_SETUP(playstation2)
#define PLAYSTATION2_SIFBIOS
void store_buf(struct cpu *cpu, uint64_t addr, const char *s, size_t len)
MACHINE_DEFAULT_RAM(playstation2)
#define MR_DEFAULT(x, name, arch, type)
const char * machine_name