aboutsummaryrefslogtreecommitdiff
path: root/sim/common/dv-pal.c
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/dv-pal.c
parent9850d2d83eb919dc9e333e8ad9d7f308d2d1967b (diff)
downloadgdb-e4c803f5bb08e946f0550260b39f71eff0192262.zip
gdb-e4c803f5bb08e946f0550260b39f71eff0192262.tar.gz
gdb-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/dv-pal.c')
-rw-r--r--sim/common/dv-pal.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/common/dv-pal.c b/sim/common/dv-pal.c
index 9a33de6..5f42fda 100644
--- a/sim/common/dv-pal.c
+++ b/sim/common/dv-pal.c
@@ -181,8 +181,8 @@ typedef struct _hw_pal_console_buffer {
typedef struct _hw_pal_counter {
struct hw_event *handler;
- signed64 start;
- unsigned32 delta;
+ int64_t start;
+ uint32_t delta;
int periodic_p;
} hw_pal_counter;
@@ -237,10 +237,10 @@ do_counter_read (struct hw *me,
hw_pal_device *pal,
const char *reg,
hw_pal_counter *counter,
- unsigned32 *word,
+ uint32_t *word,
unsigned nr_bytes)
{
- unsigned32 val;
+ uint32_t val;
if (nr_bytes != 4)
hw_abort (me, "%s - bad read size must be 4 bytes", reg);
val = counter->delta;
@@ -253,10 +253,10 @@ do_counter_value (struct hw *me,
hw_pal_device *pal,
const char *reg,
hw_pal_counter *counter,
- unsigned32 *word,
+ uint32_t *word,
unsigned nr_bytes)
{
- unsigned32 val;
+ uint32_t val;
if (nr_bytes != 4)
hw_abort (me, "%s - bad read size must be 4 bytes", reg);
if (counter->delta != 0)
@@ -273,7 +273,7 @@ do_counter_write (struct hw *me,
hw_pal_device *pal,
const char *reg,
hw_pal_counter *counter,
- const unsigned32 *word,
+ const uint32_t *word,
unsigned nr_bytes)
{
if (nr_bytes != 4)