diff options
author | Roland McGrath <roland@redhat.com> | 2010-06-15 20:53:00 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-06-15 20:53:00 -0700 |
commit | 7cee1ed8e7877a04faaf925de8f2d39d0095a191 (patch) | |
tree | 71745cf0fd6ad16ea2fecedc721ae872cf220212 | |
parent | 16de766ce0cb38088488b4f41025d648e236bf24 (diff) | |
download | elfutils-roland/parisc_corenote.tar.gz |
something for parisc, unfinishedroland/parisc_corenote
-rw-r--r-- | backends/parisc_corenote.c | 4 | ||||
-rw-r--r-- | src/readelf.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/backends/parisc_corenote.c b/backends/parisc_corenote.c index c18e7b7b..6ad15e78 100644 --- a/backends/parisc_corenote.c +++ b/backends/parisc_corenote.c @@ -50,14 +50,14 @@ static const Ebl_Register_Location prstatus_regs[] = { .offset = 42 * 4, .regno = 60, .count = 2, .bits = BITS },/* iasq[01] */ { .offset = 44 * 4, .regno = 32, .count = 1, .bits = BITS },/* sar */ { .offset = 45 * 4, .regno = 119, .count = 4, .bits = BITS },/* cr19-cr22 */ - { .offset = 49 * 4, .regno = 100, .count = 4, .bits = BITS },/* cr0 */ + { .offset = 49 * 4, .regno = 100, .count = 1, .bits = BITS },/* cr0 */ { .offset = 50 * 4, .regno = 124, .count = 8, .bits = BITS },/* cr24-cr31 */ { .offset = 58 * 4, .regno = 108, .count = 2, .bits = BITS },/* cr8-cr9 */ { .offset = 60 * 4, .regno = 112, .count = 2, .bits = BITS },/* cr12-cr13 */ { .offset = 62 * 4, .regno = 110, .count = 1, .bits = BITS },/* cr10 */ { .offset = 63 * 4, .regno = 115, .count = 1, .bits = BITS },/* cr15 */ }; -#define PRSTATUS_REGS_SIZE (64 * 4) +#define PRSTATUS_REGS_SIZE (BITS / 8 * 80) /* Only first 64 filled. */ static const Ebl_Register_Location fpregset_regs[] = { diff --git a/src/readelf.c b/src/readelf.c index c8bb2f08..e432bfc5 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -7063,6 +7063,7 @@ handle_core_registers (Ebl *ebl, Elf *core, const void *desc, maxreg = reg; struct register_info *info = ®s[reg]; info->regloc = ®locs[i]; + info->regno = reg; info->set = register_info (ebl, reg, ®locs[i], info->name, &info->bits, &info->type); } |