* spu-tdep.h (SPUADDR_SPU): Cast result to int.
This commit is contained in:
parent
8453da2e57
commit
768f092942
@ -1,3 +1,7 @@
|
|||||||
|
2009-08-05 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* spu-tdep.h (SPUADDR_SPU): Cast result to int.
|
||||||
|
|
||||||
2009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2009-08-04 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
* objfiles.h (OBJF_KEEPBFD): Delete.
|
* objfiles.h (OBJF_KEEPBFD): Delete.
|
||||||
|
@ -54,7 +54,9 @@ enum spu_regnum
|
|||||||
#define SPUADDR(spu, addr) \
|
#define SPUADDR(spu, addr) \
|
||||||
((spu) != -1? (ULONGEST)1 << 63 | (ULONGEST)(spu) << 32 | (addr) : (addr))
|
((spu) != -1? (ULONGEST)1 << 63 | (ULONGEST)(spu) << 32 | (addr) : (addr))
|
||||||
#define SPUADDR_SPU(addr) \
|
#define SPUADDR_SPU(addr) \
|
||||||
(((addr) & (ULONGEST)1 << 63)? (ULONGEST)(addr) >> 32 & 0x7fffffff : -1)
|
(((addr) & (ULONGEST)1 << 63) \
|
||||||
|
? (int) ((ULONGEST)(addr) >> 32 & 0x7fffffff) \
|
||||||
|
: -1)
|
||||||
#define SPUADDR_ADDR(addr) \
|
#define SPUADDR_ADDR(addr) \
|
||||||
(((addr) & (ULONGEST)1 << 63)? (ULONGEST)(addr) & 0xffffffff : (addr))
|
(((addr) & (ULONGEST)1 << 63)? (ULONGEST)(addr) & 0xffffffff : (addr))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user