diff options
author | Doug Evans <dje@google.com> | 2009-11-23 09:37:09 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-11-23 09:37:09 +0000 |
commit | 62836bf48e1a5312afa895ec7730a332e0928e0a (patch) | |
tree | d5e21158d4a16c6f3cfdc5c1e88d00b1e83b87b9 /sim/common | |
parent | c90188f694a64cb2b97cb9db99fe0c11aaba43d6 (diff) | |
download | gdb-62836bf48e1a5312afa895ec7730a332e0928e0a.zip gdb-62836bf48e1a5312afa895ec7730a332e0928e0a.tar.gz gdb-62836bf48e1a5312afa895ec7730a332e0928e0a.tar.bz2 |
* cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
(EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
plus regenerate cgen files
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/cgen-engine.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 7f3f0e6..22ea945 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2009-11-23 Doug Evans <dje@sebabeach.org> + + * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT. + (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT. + 2009-11-22 Doug Evans <dje@sebabeach.org> * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define. diff --git a/sim/common/cgen-engine.h b/sim/common/cgen-engine.h index 69f2ef6..ae4dad7 100644 --- a/sim/common/cgen-engine.h +++ b/sim/common/cgen-engine.h @@ -51,14 +51,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Instruction field support macros. */ -#define EXTRACT_MSB0_INT(val, total, start, length) \ +#define EXTRACT_MSB0_SINT(val, total, start, length) \ (((INT) (val) << ((sizeof (INT) * 8) - (total) + (start))) \ >> ((sizeof (INT) * 8) - (length))) #define EXTRACT_MSB0_UINT(val, total, start, length) \ (((UINT) (val) << ((sizeof (UINT) * 8) - (total) + (start))) \ >> ((sizeof (UINT) * 8) - (length))) -#define EXTRACT_LSB0_INT(val, total, start, length) \ +#define EXTRACT_LSB0_SINT(val, total, start, length) \ (((INT) (val) << ((sizeof (INT) * 8) - (start) - 1)) \ >> ((sizeof (INT) * 8) - (length))) #define EXTRACT_LSB0_UINT(val, total, start, length) \ |