summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-08-03 08:52:46 +0000
committerRoland McGrath <[email protected]>2006-08-03 08:52:46 +0000
commit19db85901e6d3b620749386f1c5692661dcb74d8 (patch)
tree6ab731b34736d9fdcf9b80daf8d998fc69cc69ed /backends
parent42a177cb418af47f974856ca9b28c9b884d00fb7 (diff)
backends/
2006-08-03 Roland McGrath <[email protected]> * sparc_regs.c (sparc_register_name): List 32 FPU regs only for EM_SPARC. EM_SPARC32PLUS also has 64. tests/ 2006-08-03 Roland McGrath <[email protected]> * run-allregs.sh: Add sparc cases. * testfile30.bz2: New data file. * testfile31.bz2: New data file. * Makefile.am (EXTRA_DIST): Add them.
Diffstat (limited to 'backends')
-rw-r--r--backends/ChangeLog5
-rw-r--r--backends/sparc_regs.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 949f8375..1f3b7303 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-03 Roland McGrath <[email protected]>
+
+ * sparc_regs.c (sparc_register_name): List 32 FPU regs only for
+ EM_SPARC. EM_SPARC32PLUS also has 64.
+
2006-07-21 Roland McGrath <[email protected]>
* i386_regs.c (i386_register_name): Fix return value when using stpcpy.
diff --git a/backends/sparc_regs.c b/backends/sparc_regs.c
index 8ee2a0cb..820878e1 100644
--- a/backends/sparc_regs.c
+++ b/backends/sparc_regs.c
@@ -1,5 +1,5 @@
/* Register names and numbers for SPARC DWARF.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -37,7 +37,7 @@ sparc_register_name (Ebl *ebl,
int regno, char *name, size_t namelen,
const char **prefix, const char **setname)
{
- const int nfp = ebl->machine == EM_SPARCV9 ? 64 : 32;
+ const int nfp = ebl->machine == EM_SPARC ? 32 : 64;
if (name == NULL)
return 32 + nfp;