--- trunk/src/cpus/cpu_hppa.c 2007/10/08 16:20:48 31 +++ trunk/src/cpus/cpu_hppa.c 2007/10/08 16:20:58 32 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $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 $ * * HP PA-RISC CPU emulation. * @@ -41,6 +41,7 @@ #include "machine.h" #include "memory.h" #include "misc.h" +#include "settings.h" #include "symbol.h" @@ -90,6 +91,9 @@ debug("%s", cpu->name); } + /* Add all register names to the settings: */ + CPU_SETTINGS_ADD_REGISTER64("pc", cpu->pc); + return 1; } @@ -168,29 +172,6 @@ } } - -/* - * 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; - } -} - /* * hppa_cpu_tlbdump():