2 |
#define CPU_PPC_H |
#define CPU_PPC_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cpu_ppc.h,v 1.64 2006/03/05 16:51:55 debug Exp $ |
* $Id: cpu_ppc.h,v 1.69 2007/02/16 19:57:56 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
65 |
#define PPC_603 4 |
#define PPC_603 4 |
66 |
#define PPC_NO_DEC 8 /* No DEC (decrementer) SPR */ |
#define PPC_NO_DEC 8 /* No DEC (decrementer) SPR */ |
67 |
|
|
68 |
/* TODO: Most of these just bogus */ |
/* |
69 |
|
* TODO: Most of these just bogus |
70 |
|
*/ |
71 |
|
|
72 |
#define PPC_CPU_TYPE_DEFS { \ |
#define PPC_CPU_TYPE_DEFS { \ |
73 |
{ "PPC405GP", 0x40110000, 32, PPC_NOFP|PPC_NO_DEC, \ |
{ "PPC405GP", 0x40110000, 32, PPC_NOFP|PPC_NO_DEC, \ |
200 |
|
|
201 |
|
|
202 |
/* cpu_ppc.c: */ |
/* cpu_ppc.c: */ |
203 |
|
int ppc_run_instr(struct cpu *cpu); |
204 |
|
int ppc32_run_instr(struct cpu *cpu); |
205 |
void ppc_exception(struct cpu *cpu, int exception_nr); |
void ppc_exception(struct cpu *cpu, int exception_nr); |
206 |
void ppc_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
void ppc_update_translation_table(struct cpu *cpu, uint64_t vaddr_page, |
207 |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
unsigned char *host_page, int writeflag, uint64_t paddr_page); |
217 |
int ppc_cpu_family_init(struct cpu_family *); |
int ppc_cpu_family_init(struct cpu_family *); |
218 |
|
|
219 |
/* memory_ppc.c: */ |
/* memory_ppc.c: */ |
220 |
int ppc_translate_address(struct cpu *cpu, uint64_t vaddr, |
int ppc_translate_v2p(struct cpu *cpu, uint64_t vaddr, |
221 |
uint64_t *return_addr, int flags); |
uint64_t *return_addr, int flags); |
222 |
|
|
223 |
#endif /* CPU_PPC_H */ |
#endif /* CPU_PPC_H */ |