25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_i960.c,v 1.11 2006/07/20 21:52:59 debug Exp $ |
* $Id: cpu_i960.c,v 1.12 2006/09/19 10:50:08 debug Exp $ |
29 |
* |
* |
30 |
* Intel i960 CPU emulation. |
* Intel i960 CPU emulation. |
31 |
*/ |
*/ |
39 |
#include "machine.h" |
#include "machine.h" |
40 |
#include "memory.h" |
#include "memory.h" |
41 |
#include "misc.h" |
#include "misc.h" |
42 |
|
#include "settings.h" |
43 |
#include "symbol.h" |
#include "symbol.h" |
44 |
|
|
45 |
#define DYNTRANS_32 |
#define DYNTRANS_32 |
76 |
debug("%s", cpu->name); |
debug("%s", cpu->name); |
77 |
} |
} |
78 |
|
|
79 |
|
/* Add all register names to the settings: */ |
80 |
|
CPU_SETTINGS_ADD_REGISTER64("pc", cpu->pc); |
81 |
|
|
82 |
return 1; |
return 1; |
83 |
} |
} |
84 |
|
|
129 |
} |
} |
130 |
} |
} |
131 |
|
|
|
|
|
|
/* |
|
|
* i960_cpu_register_match(): |
|
|
*/ |
|
|
void i960_cpu_register_match(struct machine *m, char *name, |
|
|
int writeflag, uint64_t *valuep, int *match_register) |
|
|
{ |
|
|
int cpunr = 0; |
|
|
|
|
|
/* CPU number: */ |
|
|
|
|
|
/* TODO */ |
|
|
|
|
|
/* Register name: */ |
|
|
if (strcasecmp(name, "pc") == 0) { |
|
|
if (writeflag) { |
|
|
m->cpus[cpunr]->pc = *valuep; |
|
|
} else |
|
|
*valuep = m->cpus[cpunr]->pc; |
|
|
*match_register = 1; |
|
|
} |
|
|
} |
|
|
|
|
132 |
|
|
133 |
/* |
/* |
134 |
* i960_cpu_tlbdump(): |
* i960_cpu_tlbdump(): |