From 7cee1ed8e7877a04faaf925de8f2d39d0095a191 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 15 Jun 2010 20:53:00 -0700 Subject: [PATCH] something for parisc, unfinished --- backends/parisc_corenote.c | 4 ++-- src/readelf.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.47.2