aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2012-06-28 09:12:27 +0000
committerIain Sandoe <iain@codesourcery.com>2012-06-28 09:12:27 +0000
commitcefc6d46de1b2eb14af43c1de9e9fa290e38b292 (patch)
tree8a721532f44d32f5be2b40a83a51a753d7a6b2a9 /include
parent2e3cf129e630bec707b68e85b388b056ba3bbda2 (diff)
downloadgdb-cefc6d46de1b2eb14af43c1de9e9fa290e38b292.zip
gdb-cefc6d46de1b2eb14af43c1de9e9fa290e38b292.tar.gz
gdb-cefc6d46de1b2eb14af43c1de9e9fa290e38b292.tar.bz2
* common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.
Diffstat (limited to 'include')
-rw-r--r--include/elf/ChangeLog5
-rw-r--r--include/elf/common.h14
2 files changed, 18 insertions, 1 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index af95636..ef84aa3 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-28 Iain Sandoe <iain@codesourcery.com>
+
+ * common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
+ AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.
+
2012-05-16 Georg-Johann Lay <avr@gjlay.de>
PR target/13503
diff --git a/include/elf/common.h b/include/elf/common.h
index 5cddc0b..58e489a 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1,6 +1,6 @@
/* ELF support for BFD.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
@@ -935,6 +935,18 @@
#define AT_SYSINFO 32
#define AT_SYSINFO_EHDR 33 /* Pointer to ELF header of system-supplied DSO. */
+/* More complete cache descriptions than AT_[DIU]CACHEBSIZE. If the
+ value is -1, then the cache doesn't exist. Otherwise:
+
+ bit 0-3: Cache set-associativity; 0 means fully associative.
+ bit 4-7: Log2 of cacheline size.
+ bit 8-31: Size of the entire cache >> 8. */
+
+#define AT_L1I_CACHESHAPE 34
+#define AT_L1D_CACHESHAPE 35
+#define AT_L2_CACHESHAPE 36
+#define AT_L3_CACHESHAPE 37
+
#define AT_SUN_UID 2000 /* Effective user ID. */
#define AT_SUN_RUID 2001 /* Real user ID. */
#define AT_SUN_GID 2002 /* Effective group ID. */