diff options
author | Chris Demetriou <cgd@google.com> | 2002-03-05 19:22:13 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2002-03-05 19:22:13 +0000 |
commit | 3dea6720b37047a4eb4a7a2c18cef53471fbf0d6 (patch) | |
tree | d3f586bad004a0e4367a9fc2cf8c3050d4ff2b47 | |
parent | 40d74fb122d7610447c2f34978ed35d749a4f118 (diff) | |
download | gdb-3dea6720b37047a4eb4a7a2c18cef53471fbf0d6.zip gdb-3dea6720b37047a4eb4a7a2c18cef53471fbf0d6.tar.gz gdb-3dea6720b37047a4eb4a7a2c18cef53471fbf0d6.tar.bz2 |
2002-02-05 Chris Demetriou <cgd@broadcom.com>
* sim-main.h (SIGNEXTEND): Remove.
-rw-r--r-- | sim/mips/ChangeLog | 4 | ||||
-rw-r--r-- | sim/mips/sim-main.h | 9 |
2 files changed, 4 insertions, 9 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index b261dba..7d3eb9b 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,7 @@ +2002-02-05 Chris Demetriou <cgd@broadcom.com> + + * sim-main.h (SIGNEXTEND): Remove. + 2002-02-04 Chris Demetriou <cgd@broadcom.com> * mips.igen: Remove gencode comment from top of file, fix diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h index 215a816..8e8511f 100644 --- a/sim/mips/sim-main.h +++ b/sim/mips/sim-main.h @@ -56,15 +56,6 @@ typedef unsigned64 uword64; #define WORD64(h,l) ((word64)((SET64HI(h)|SET64LO(l)))) #define UWORD64(h,l) (SET64HI(h)|SET64LO(l)) -/* Sign-extend the given value (e) as a value (b) bits long. We cannot - assume the HI32bits of the operand are zero, so we must perform a - mask to ensure we can use the simple subtraction to sign-extend. */ -#define SIGNEXTEND(e,b) \ - ((unsigned_word) \ - (((e) & ((uword64) 1 << ((b) - 1))) \ - ? (((e) & (((uword64) 1 << (b)) - 1)) - ((uword64)1 << (b))) \ - : ((e) & (((((uword64) 1 << ((b) - 1)) - 1) << 1) | 1)))) - /* Check if a value will fit within a halfword: */ #define NOTHALFWORDVALUE(v) ((((((uword64)(v)>>16) == 0) && !((v) & ((unsigned)1 << 15))) || (((((uword64)(v)>>32) == 0xFFFFFFFF) && ((((uword64)(v)>>16) & 0xFFFF) == 0xFFFF)) && ((v) & ((unsigned)1 << 15)))) ? (1 == 0) : (1 == 1)) |