aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-31 23:48:16 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-31 23:48:16 -0400
commit7b83db6a74c6cb68b3804890ab9037460e21fedf (patch)
tree39d7fc0acd41743f5466a9d55a3b486c9ced57df /sim/ppc
parentad2511744f12087deecc331acbc7a9a3b203e472 (diff)
downloadgdb-7b83db6a74c6cb68b3804890ab9037460e21fedf.zip
gdb-7b83db6a74c6cb68b3804890ab9037460e21fedf.tar.gz
gdb-7b83db6a74c6cb68b3804890ab9037460e21fedf.tar.bz2
sim: ppc: switch core types to stdint.h types
There's no need to define these ourselves anymore, so switch to the stdint.h types. This will be important when we start using PRI* defines with printf formats.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/words.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/sim/ppc/words.h b/sim/ppc/words.h
index 641f2251..406bb1f 100644
--- a/sim/ppc/words.h
+++ b/sim/ppc/words.h
@@ -46,31 +46,30 @@
/* This must come before any other includes. */
#include "defs.h"
+#include <stdint.h>
+
/* bit based */
typedef char natural8;
typedef short natural16;
typedef int natural32;
-typedef signed char signed8;
-typedef signed short signed16;
-typedef signed int signed32;
-
-typedef unsigned char unsigned8;
-typedef unsigned short unsigned16;
-typedef unsigned int unsigned32;
-
#ifdef __GNUC__
typedef long long natural64;
-typedef signed long long signed64;
-typedef unsigned long long unsigned64;
#endif
#ifdef _MSC_VER
typedef __int64 natural64;
-typedef signed __int64 signed64;
-typedef unsigned __int64 unsigned64;
#endif
+typedef int8_t signed8;
+typedef int16_t signed16;
+typedef int32_t signed32;
+typedef int64_t signed64;
+
+typedef uint8_t unsigned8;
+typedef uint16_t unsigned16;
+typedef uint32_t unsigned32;
+typedef uint64_t unsigned64;
/* byte based */
typedef natural8 natural_1;