diff options
author | Mark Alexander <marka@cygnus> | 1996-11-27 03:40:28 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1996-11-27 03:40:28 +0000 |
commit | 7844472931bc55884b1ceadc094173384d491079 (patch) | |
tree | 4c052d49a99b0ea1ef2186677b5e91dab3181740 /gdb/config/mips | |
parent | 96431497ff2c780978d95f5fda7148ba732dcae0 (diff) | |
download | gdb-7844472931bc55884b1ceadc094173384d491079.zip gdb-7844472931bc55884b1ceadc094173384d491079.tar.gz gdb-7844472931bc55884b1ceadc094173384d491079.tar.bz2 |
* config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
(mips_addr_bits_remove): Declare.
Diffstat (limited to 'gdb/config/mips')
-rw-r--r-- | gdb/config/mips/tm-mips.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 83f2f1d..2bb0486 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -68,6 +68,15 @@ extern enum mips_fpu_type mips_fpu; #define DEFAULT_MIPS_TYPE "generic" +/* Remove useless bits from an instruction address. */ + +#define ADDR_BITS_REMOVE(addr) mips_addr_bits_remove(addr) +CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr)); + +/* Remove useless bits from the stack pointer. */ + +#define TARGET_READ_SP() ADDR_BITS_REMOVE (read_register (SP_REGNUM)) + /* Offset from address of function to start of its code. Zero on most machines. */ |