diff options
author | Martin Hunt <hunt@redhat.com> | 1996-08-03 00:45:58 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1996-08-03 00:45:58 +0000 |
commit | 4c38885c8646a891e02e99166df57b0030bd6b2d (patch) | |
tree | c6389c7e6eb4ec08d153a550e9b3051d1de5dcae /sim/d10v/d10v_sim.h | |
parent | e95a45af92461df2842d017f2940359cde2d5eea (diff) | |
download | gdb-4c38885c8646a891e02e99166df57b0030bd6b2d.zip gdb-4c38885c8646a891e02e99166df57b0030bd6b2d.tar.gz gdb-4c38885c8646a891e02e99166df57b0030bd6b2d.tar.bz2 |
Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v_sim.h, simops.c: Snapshot
Diffstat (limited to 'sim/d10v/d10v_sim.h')
-rw-r--r-- | sim/d10v/d10v_sim.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h index 6938ba1..cc81d6a 100644 --- a/sim/d10v/d10v_sim.h +++ b/sim/d10v/d10v_sim.h @@ -74,16 +74,16 @@ extern struct simops Simops[]; /* sign-extend a 16-bit number */ #define SEXT16(x) ((((x)&0xffff)^(~0x7fff))+0x8000) -#define BIT40 0x8000000000LL -#define BIT44 0x80000000000LL +/* sign extend a 40 bit number */ +#define SEXT40(x) ((((x)&0xffffffffffLL)^(~0x7fffffffffLL))+0x8000000000LL) + #define MAX32 0x7fffffffLL #define MIN32 0xff80000000LL #define MASK32 0xffffffffLL #define MASK40 0xffffffffffLL -#define MASK44 0xfffffffffffLL - #define RB(x) (*((uint8 *)((x)+State.imem))) +#define SB(addr,data) ( RB(addr) = (data & 0xff)) #ifdef WORDS_BIGENDIAN |