diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-04-24 19:44:16 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-04-24 19:44:16 +0000 |
commit | 742c84f629e7a817e937d651d2b8b32f8bf7716c (patch) | |
tree | 19244be5821f5204d5d958a0580d711b25c32fa8 /gdb/mips-tdep.c | |
parent | 7fc7e0c3280f9c7c4f8447869b219627ec39d054 (diff) | |
download | gdb-742c84f629e7a817e937d651d2b8b32f8bf7716c.zip gdb-742c84f629e7a817e937d651d2b8b32f8bf7716c.tar.gz gdb-742c84f629e7a817e937d651d2b8b32f8bf7716c.tar.bz2 |
* mips-tdep.c
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
with the other MIPS16 helpers.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 74cdb3b..ddc2d8a 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -203,27 +203,6 @@ mips_float_register_p (struct gdbarch *gdbarch, int regnum) #define MIPS_FPU_TYPE(gdbarch) (gdbarch_tdep (gdbarch)->mips_fpu_type) -/* MIPS16 function addresses are odd (bit 0 is set). Here are some - functions to test, set, or clear bit 0 of addresses. */ - -static CORE_ADDR -is_mips16_addr (CORE_ADDR addr) -{ - return ((addr) & 1); -} - -static CORE_ADDR -unmake_mips16_addr (CORE_ADDR addr) -{ - return ((addr) & ~(CORE_ADDR) 1); -} - -static CORE_ADDR -make_mips16_addr (CORE_ADDR addr) -{ - return ((addr) | (CORE_ADDR) 1); -} - /* Return the MIPS ABI associated with GDBARCH. */ enum mips_abi mips_abi (struct gdbarch *gdbarch) @@ -267,6 +246,27 @@ mips_abi_regsize (struct gdbarch *gdbarch) } } +/* MIPS16 function addresses are odd (bit 0 is set). Here are some + functions to test, set, or clear bit 0 of addresses. */ + +static CORE_ADDR +is_mips16_addr (CORE_ADDR addr) +{ + return ((addr) & 1); +} + +static CORE_ADDR +unmake_mips16_addr (CORE_ADDR addr) +{ + return ((addr) & ~(CORE_ADDR) 1); +} + +static CORE_ADDR +make_mips16_addr (CORE_ADDR addr) +{ + return ((addr) | (CORE_ADDR) 1); +} + /* Functions for setting and testing a bit in a minimal symbol that marks it as 16-bit function. The MSB of the minimal symbol's "info" field is used for this purpose. |