From: Roland McGrath Date: Wed, 16 Jun 2010 03:53:00 +0000 (-0700) Subject: something for parisc, unfinished X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Froland%2Fparisc_corenote;p=thirdparty%2Felfutils.git something for parisc, unfinished --- diff --git a/backends/parisc_corenote.c b/backends/parisc_corenote.c index c18e7b7be..6ad15e784 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 c8bb2f08e..e432bfc59 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); }