25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_hppa.c,v 1.15 2006/07/16 13:32:26 debug Exp $ |
* $Id: cpu_hppa.c,v 1.16 2006/09/19 10:50:08 debug Exp $ |
29 |
* |
* |
30 |
* HP PA-RISC CPU emulation. |
* HP PA-RISC CPU emulation. |
31 |
* |
* |
41 |
#include "machine.h" |
#include "machine.h" |
42 |
#include "memory.h" |
#include "memory.h" |
43 |
#include "misc.h" |
#include "misc.h" |
44 |
|
#include "settings.h" |
45 |
#include "symbol.h" |
#include "symbol.h" |
46 |
|
|
47 |
|
|
91 |
debug("%s", cpu->name); |
debug("%s", cpu->name); |
92 |
} |
} |
93 |
|
|
94 |
|
/* Add all register names to the settings: */ |
95 |
|
CPU_SETTINGS_ADD_REGISTER64("pc", cpu->pc); |
96 |
|
|
97 |
return 1; |
return 1; |
98 |
} |
} |
99 |
|
|
172 |
} |
} |
173 |
} |
} |
174 |
|
|
|
|
|
|
/* |
|
|
* hppa_cpu_register_match(): |
|
|
*/ |
|
|
void hppa_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; |
|
|
} |
|
|
} |
|
|
|
|
175 |
|
|
176 |
/* |
/* |
177 |
* hppa_cpu_tlbdump(): |
* hppa_cpu_tlbdump(): |