25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_arm.c,v 1.68 2007/03/26 02:01:35 debug Exp $ |
* $Id: cpu_arm.c,v 1.71 2007/06/15 00:41:21 debug Exp $ |
29 |
* |
* |
30 |
* ARM CPU emulation. |
* ARM CPU emulation. |
31 |
* |
* |
39 |
#include <stdlib.h> |
#include <stdlib.h> |
40 |
#include <string.h> |
#include <string.h> |
41 |
#include <ctype.h> |
#include <ctype.h> |
42 |
|
#include <unistd.h> |
43 |
|
|
44 |
#include "arm_cpu_types.h" |
#include "arm_cpu_types.h" |
45 |
#include "cpu.h" |
#include "cpu.h" |
50 |
#include "of.h" |
#include "of.h" |
51 |
#include "settings.h" |
#include "settings.h" |
52 |
#include "symbol.h" |
#include "symbol.h" |
53 |
|
#include "timer.h" |
54 |
|
#include "useremul.h" |
55 |
|
|
56 |
#define DYNTRANS_32 |
#define DYNTRANS_32 |
57 |
#include "tmp_arm_head.c" |
#include "tmp_arm_head.c" |
58 |
|
|
59 |
|
|
60 |
|
extern int native_code_translation_enabled; |
61 |
|
|
62 |
/* ARM symbolic register names and condition strings: */ |
/* ARM symbolic register names and condition strings: */ |
63 |
static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES; |
static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES; |
64 |
static char *arm_condition_string[16] = ARM_CONDITION_STRINGS; |
static char *arm_condition_string[16] = ARM_CONDITION_STRINGS; |
195 |
/* FIQ: TODO */ |
/* FIQ: TODO */ |
196 |
} |
} |
197 |
|
|
198 |
|
if (native_code_translation_enabled) |
199 |
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
200 |
|
arm_timer_sample_tick, cpu); |
201 |
|
|
202 |
return 1; |
return 1; |
203 |
} |
} |