diff options
author | Paul Brook <paul@codesourcery.com> | 2005-09-19 14:21:09 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2005-09-19 14:21:09 +0000 |
commit | c4793bacbfaf388c162ba7ec3cad590a83071bdd (patch) | |
tree | 9695937e6dea54bd82c7d15bcefe0613f846cd51 /sim/arm/armdefs.h | |
parent | 6a8492b56206bf8da71d94d96a76b15f995b8621 (diff) | |
download | gdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.zip gdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.tar.gz gdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.tar.bz2 |
2005-09-19 Paul Brook <paul@codesourcery.com>
* armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when
available.
* armemu.c: Use them.
* armvirt.c (ARMul_MemoryInit): Use correct type for size.
* configure.ac: Check for stdint.h.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'sim/arm/armdefs.h')
-rw-r--r-- | sim/arm/armdefs.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sim/arm/armdefs.h b/sim/arm/armdefs.h index 0800e3e..2942023 100644 --- a/sim/arm/armdefs.h +++ b/sim/arm/armdefs.h @@ -15,6 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> @@ -29,8 +30,18 @@ typedef char *VoidStar; #endif -typedef unsigned long ARMword; /* must be 32 bits wide */ +#ifdef HAVE_STDINT_H +#include <stdint.h> +typedef uint32_t ARMword; +typedef int32_t ARMsword; +typedef uint64_t ARMdword; +typedef int64_t ARMsdword; +#else +typedef unsigned int ARMword; /* must be 32 bits wide */ +typedef signed int ARMsword; typedef unsigned long long ARMdword; /* Must be at least 64 bits wide. */ +typedef signed long long ARMsdword; +#endif typedef struct ARMul_State ARMul_State; typedef unsigned ARMul_CPInits (ARMul_State * state); |