25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_ppc.c,v 1.58 2006/06/16 18:31:26 debug Exp $ |
* $Id: cpu_ppc.c,v 1.59 2006/06/24 21:47:23 debug Exp $ |
29 |
* |
* |
30 |
* PowerPC/POWER CPU emulation. |
* PowerPC/POWER CPU emulation. |
31 |
*/ |
*/ |
129 |
ppc_invalidate_code_translation; |
ppc_invalidate_code_translation; |
130 |
} |
} |
131 |
|
|
132 |
cpu->translate_address = ppc_translate_address; |
cpu->translate_v2p = ppc_translate_v2p; |
133 |
|
|
134 |
/* Only show name and caches etc for CPU nr 0 (in SMP machines): */ |
/* Only show name and caches etc for CPU nr 0 (in SMP machines): */ |
135 |
if (cpu_id == 0) { |
if (cpu_id == 0) { |
160 |
/* Some default stack pointer value. TODO: move this? */ |
/* Some default stack pointer value. TODO: move this? */ |
161 |
cpu->cd.ppc.gpr[1] = machine->physical_ram_in_mb * 1048576 - 4096; |
cpu->cd.ppc.gpr[1] = machine->physical_ram_in_mb * 1048576 - 4096; |
162 |
|
|
|
ppc_init_64bit_dummy_tables(cpu); |
|
|
|
|
163 |
/* |
/* |
164 |
* NOTE/TODO: Ugly hack for OpenFirmware emulation: |
* NOTE/TODO: Ugly hack for OpenFirmware emulation: |
165 |
*/ |
*/ |