aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-11-23 09:37:09 +0000
committerDoug Evans <dje@google.com>2009-11-23 09:37:09 +0000
commit62836bf48e1a5312afa895ec7730a332e0928e0a (patch)
treed5e21158d4a16c6f3cfdc5c1e88d00b1e83b87b9 /sim/common
parentc90188f694a64cb2b97cb9db99fe0c11aaba43d6 (diff)
downloadgdb-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/ChangeLog5
-rw-r--r--sim/common/cgen-engine.h4
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) \