25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_sparc.c,v 1.46 2007/06/07 15:36:24 debug Exp $ |
* $Id: cpu_sparc.c,v 1.47 2007/06/28 13:36:47 debug Exp $ |
29 |
* |
* |
30 |
* SPARC CPU emulation. |
* SPARC CPU emulation. |
31 |
*/ |
*/ |
41 |
#include "misc.h" |
#include "misc.h" |
42 |
#include "settings.h" |
#include "settings.h" |
43 |
#include "symbol.h" |
#include "symbol.h" |
|
#include "timer.h" |
|
44 |
|
|
45 |
|
|
46 |
#define DYNTRANS_DUALMODE_32 |
#define DYNTRANS_DUALMODE_32 |
48 |
#include "tmp_sparc_head.c" |
#include "tmp_sparc_head.c" |
49 |
|
|
50 |
|
|
|
extern int native_code_translation_enabled; |
|
|
|
|
51 |
static char *sparc_regnames[N_SPARC_REG] = SPARC_REG_NAMES; |
static char *sparc_regnames[N_SPARC_REG] = SPARC_REG_NAMES; |
52 |
static char *sparc_pregnames[N_SPARC_PREG] = SPARC_PREG_NAMES; |
static char *sparc_pregnames[N_SPARC_PREG] = SPARC_PREG_NAMES; |
53 |
static char *sparc_regbranch_names[N_SPARC_REGBRANCH_TYPES] = |
static char *sparc_regbranch_names[N_SPARC_REGBRANCH_TYPES] = |
168 |
cpu->cd.sparc.r[i]); |
cpu->cd.sparc.r[i]); |
169 |
/* TODO: Handler for writes to the zero register! */ |
/* TODO: Handler for writes to the zero register! */ |
170 |
|
|
|
if (native_code_translation_enabled) |
|
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
|
|
sparc_timer_sample_tick, cpu); |
|
|
|
|
171 |
return 1; |
return 1; |
172 |
} |
} |
173 |
|
|