* mips-tdep.c
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group with the other MIPS16 helpers.
This commit is contained in:
parent
7fc7e0c328
commit
742c84f629
2 changed files with 27 additions and 21 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
|
* mips-tdep.c
|
||||||
|
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
|
||||||
|
with the other MIPS16 helpers.
|
||||||
|
|
||||||
2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
|
2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
|
|
||||||
* observer.sh: Conditionally declare `args', thus cleaning up
|
* observer.sh: Conditionally declare `args', thus cleaning up
|
||||||
|
|
|
@ -203,27 +203,6 @@ mips_float_register_p (struct gdbarch *gdbarch, int regnum)
|
||||||
|
|
||||||
#define MIPS_FPU_TYPE(gdbarch) (gdbarch_tdep (gdbarch)->mips_fpu_type)
|
#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. */
|
/* Return the MIPS ABI associated with GDBARCH. */
|
||||||
enum mips_abi
|
enum mips_abi
|
||||||
mips_abi (struct gdbarch *gdbarch)
|
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
|
/* 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
|
marks it as 16-bit function. The MSB of the minimal symbol's
|
||||||
"info" field is used for this purpose.
|
"info" field is used for this purpose.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue