machine_playstation2.cc Source File
Back to the index.
Go to the documentation of this file.
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;
struct symbol_context symbol_context
void store_buf(struct cpu *cpu, uint64_t addr, const char *s, size_t len)
#define PLAYSTATION2_OPTARGS
MACHINE_REGISTER(playstation2)
char * boot_string_argument
void COMBINE() strlen(struct cpu *cpu, struct arm_instr_call *ic, int low_addr)
MACHINE_SETUP(playstation2)
void * device_add(struct machine *machine, const char *name_and_params)
#define MR_DEFAULT(x, name, arch, type)
MACHINE_DEFAULT_CPU(playstation2)
MACHINE_DEFAULT_RAM(playstation2)
void store_string(struct cpu *cpu, uint64_t addr, const char *s)
#define EMUL_LITTLE_ENDIAN
int store_32bit_word(struct cpu *cpu, uint64_t addr, uint64_t data32)
#define PLAYSTATION2_SIFBIOS
void store_byte(struct cpu *cpu, uint64_t addr, uint8_t data)
void add_symbol_name(struct symbol_context *, uint64_t addr, uint64_t len, const char *name, int type, int n_args)
const char * machine_name
void machine_entry_add_alias(struct machine_entry *me, const char *name)
void dev_ram_init(struct machine *machine, uint64_t baseaddr, uint64_t length, int mode, uint64_t otheraddress, const char *name)
int diskimage_exist(struct machine *machine, int id, int type)
#define CHECK_ALLOCATION(ptr)
Generated on Tue Mar 24 2020 14:04:48 for GXemul by
1.8.17