diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-06 02:39:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-01 13:31:34 -0500 |
commit | 03b46de59084f558140b632f0868a7e37b7749d3 (patch) | |
tree | 1360452b55c0ede4411c4e4b0aa3a427e1e457cd /sim/ppc/bits.h | |
parent | d3eb0aa2872de6257df7a21ba2cf798f1005001d (diff) | |
download | gdb-03b46de59084f558140b632f0868a7e37b7749d3.zip gdb-03b46de59084f558140b632f0868a7e37b7749d3.tar.gz gdb-03b46de59084f558140b632f0868a7e37b7749d3.tar.bz2 |
sim: ppc: drop natural types
These are almost entirely unused. For the very few places using them,
replace with explicit signed types. This matches what was done in the
common sim code.
Diffstat (limited to 'sim/ppc/bits.h')
-rw-r--r-- | sim/ppc/bits.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/bits.h b/sim/ppc/bits.h index 58173f7..d3b765a 100644 --- a/sim/ppc/bits.h +++ b/sim/ppc/bits.h @@ -89,7 +89,7 @@ /* MakeBit */ -#define _BITn(WIDTH, pos) (((natural##WIDTH)(1)) \ +#define _BITn(WIDTH, pos) (((uint##WIDTH##_t)(1)) \ << _MAKE_SHIFT(WIDTH, pos)) #define BIT4(POS) (1 << _MAKE_SHIFT(4, POS)) @@ -177,7 +177,7 @@ INLINE_BITS\ /* extract the required bits aligning them with the lsb */ #define _EXTRACTEDn(WIDTH, WORD, START, STOP) \ -((((natural##WIDTH)(WORD)) >> (WIDTH - (STOP) - 1)) \ +((((uint##WIDTH##_t)(WORD)) >> (WIDTH - (STOP) - 1)) \ & _MASKn(WIDTH, WIDTH-1+(START)-(STOP), WIDTH-1)) /* #define EXTRACTED10(WORD, START, STOP) _EXTRACTEDn(10, WORD, START, STOP) */ @@ -215,7 +215,7 @@ INLINE_BITS\ /* move a group of bits around */ #define _INSERTEDn(N, WORD, START, STOP) \ -(((natural##N)(WORD) << _MAKE_SHIFT(N, STOP)) & _MASKn(N, START, STOP)) +(((uint##N##_t)(WORD) << _MAKE_SHIFT(N, STOP)) & _MASKn(N, START, STOP)) #define INSERTED32(WORD, START, STOP) _INSERTEDn(32, WORD, START, STOP) #define INSERTED64(WORD, START, STOP) _INSERTEDn(64, WORD, START, STOP) |