aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-trace.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-06 02:29:47 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-06 01:17:39 -0500
commite4c803f5bb08e946f0550260b39f71eff0192262 (patch)
treeb63f746ac5cc0496d802a5c2c27f27598333dcc2 /sim/common/sim-trace.h
parent9850d2d83eb919dc9e333e8ad9d7f308d2d1967b (diff)
downloadbinutils-e4c803f5bb08e946f0550260b39f71eff0192262.zip
binutils-e4c803f5bb08e946f0550260b39f71eff0192262.tar.gz
binutils-e4c803f5bb08e946f0550260b39f71eff0192262.tar.bz2
sim: common: migrate to standard uintXX_t types
Drop the sim-specific unsignedXX types and move to the standard uintXX_t types that C11 provides.
Diffstat (limited to 'sim/common/sim-trace.h')
-rw-r--r--sim/common/sim-trace.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index c68a5ee..d08810d 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -179,13 +179,13 @@ typedef struct _trace_data {
/* Buffer to save the inputs for the current instruction. Use a
union to force the buffer into correct alignment */
union {
- unsigned8 i8;
- unsigned16 i16;
- unsigned32 i32;
- unsigned64 i64;
+ uint8_t i8;
+ uint16_t i16;
+ uint32_t i32;
+ uint64_t i64;
} trace_input_data[16];
- unsigned8 trace_input_fmt[16];
- unsigned8 trace_input_size[16];
+ uint8_t trace_input_fmt[16];
+ uint8_t trace_input_size[16];
int trace_input_idx;
#define TRACE_INPUT_DATA(t) ((t)->trace_input_data)
#define TRACE_INPUT_FMT(t) ((t)->trace_input_fmt)