25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_arm.c,v 1.71 2007/06/15 00:41:21 debug Exp $ |
* $Id: cpu_arm.c,v 1.72 2007/06/28 13:36:46 debug Exp $ |
29 |
* |
* |
30 |
* ARM CPU emulation. |
* ARM CPU emulation. |
31 |
* |
* |
50 |
#include "of.h" |
#include "of.h" |
51 |
#include "settings.h" |
#include "settings.h" |
52 |
#include "symbol.h" |
#include "symbol.h" |
|
#include "timer.h" |
|
53 |
#include "useremul.h" |
#include "useremul.h" |
54 |
|
|
55 |
#define DYNTRANS_32 |
#define DYNTRANS_32 |
56 |
#include "tmp_arm_head.c" |
#include "tmp_arm_head.c" |
57 |
|
|
58 |
|
|
|
extern int native_code_translation_enabled; |
|
|
|
|
59 |
/* ARM symbolic register names and condition strings: */ |
/* ARM symbolic register names and condition strings: */ |
60 |
static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES; |
static char *arm_regname[N_ARM_REGS] = ARM_REG_NAMES; |
61 |
static char *arm_condition_string[16] = ARM_CONDITION_STRINGS; |
static char *arm_condition_string[16] = ARM_CONDITION_STRINGS; |
192 |
/* FIQ: TODO */ |
/* FIQ: TODO */ |
193 |
} |
} |
194 |
|
|
|
if (native_code_translation_enabled) |
|
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
|
|
arm_timer_sample_tick, cpu); |
|
|
|
|
195 |
return 1; |
return 1; |
196 |
} |
} |
197 |
|
|