1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-26 13:03:42 +01:00

MIPS: implement dwarf_to_unw_regnum() macro without table

This commit is contained in:
Tommi Rantala 2012-08-07 23:47:27 +03:00
parent 1dc66bd181
commit 7b81113721
2 changed files with 2 additions and 11 deletions

View file

@ -1,5 +1,6 @@
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
Copyright (C) 2012 Tommi Rantala <tt.rantala@gmail.com>
This file is part of libunwind.
@ -29,8 +30,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
explicitly defined. */
#define DWARF_NUM_PRESERVED_REGS 188
/* FIXME: Probably unnecessary on MIPS. See mips/Gglobal.c. */
#define DWARF_REGNUM_MAP_LENGTH 32
#define dwarf_to_unw_regnum(reg) (((reg) < 32) ? (reg) : 0)
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
#define dwarf_is_big_endian(addr_space) ((addr_space)->big_endian)

View file

@ -28,15 +28,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
HIDDEN pthread_mutex_t mips_lock = PTHREAD_MUTEX_INITIALIZER;
HIDDEN int tdep_needs_initialization = 1;
/* FIXME: I'm pretty sure we don't need this at all for MIPS, but "generic"
code (include/dwarf_i.h) seems to expect it to be here at present. */
HIDDEN uint8_t dwarf_to_unw_regnum_map[] =
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
};
HIDDEN void
tdep_init (void)
{