25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_m88k.c,v 1.38 2007/06/07 15:36:24 debug Exp $ |
* $Id: cpu_m88k.c,v 1.39 2007/06/28 13:36:46 debug Exp $ |
29 |
* |
* |
30 |
* Motorola M881x0 CPU emulation. |
* Motorola M881x0 CPU emulation. |
31 |
*/ |
*/ |
43 |
#include "mvmeprom.h" |
#include "mvmeprom.h" |
44 |
#include "settings.h" |
#include "settings.h" |
45 |
#include "symbol.h" |
#include "symbol.h" |
|
#include "timer.h" |
|
46 |
|
|
47 |
#include "m8820x_pte.h" |
#include "m8820x_pte.h" |
48 |
#include "m88k_dmt.h" |
#include "m88k_dmt.h" |
52 |
#include "tmp_m88k_head.c" |
#include "tmp_m88k_head.c" |
53 |
|
|
54 |
|
|
|
extern int native_code_translation_enabled; |
|
|
|
|
55 |
void m88k_pc_to_pointers(struct cpu *); |
void m88k_pc_to_pointers(struct cpu *); |
56 |
|
|
57 |
static char *memop[4] = { ".d", "", ".h", ".b" }; |
static char *memop[4] = { ".d", "", ".h", ".b" }; |
180 |
/* Initial stack pointer: */ |
/* Initial stack pointer: */ |
181 |
cpu->cd.m88k.r[31] = 1048576 * cpu->machine->physical_ram_in_mb - 1024; |
cpu->cd.m88k.r[31] = 1048576 * cpu->machine->physical_ram_in_mb - 1024; |
182 |
|
|
|
if (native_code_translation_enabled) |
|
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
|
|
m88k_timer_sample_tick, cpu); |
|
|
|
|
183 |
return 1; |
return 1; |
184 |
} |
} |
185 |
|
|