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.
This commit is contained in:
Paul Brook
2005-09-19 14:21:09 +00:00
parent 6a8492b562
commit c4793bacbf
7 changed files with 217 additions and 140 deletions

View File

@@ -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);