summaryrefslogtreecommitdiffstats
path: root/leon2.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-06-11 09:43:17 +0200
committerJiri Gaisler <jiri@gaisler.se>2019-06-11 09:43:17 +0200
commitad36bf14ca7293a253150f13505b174ca9a5d1ea (patch)
treeeda9b81238e46c4fc0a2219ed4e7135122b6326f /leon2.c
parentAdd local copy of elf.h (diff)
downloadsis-ad36bf14ca7293a253150f13505b174ca9a5d1ea.tar.bz2
Silence warnings when compiled with LLVM
Diffstat (limited to 'leon2.c')
-rw-r--r--leon2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/leon2.c b/leon2.c
index d2d1b65..a2f7ebf 100644
--- a/leon2.c
+++ b/leon2.c
@@ -156,8 +156,8 @@ static void gpt_init (void);
static void gpt_reset (void);
static void gpt_scaler_set (uint32 val);
static void timer_ctrl (uint32 val, int i);
-static unsigned char *get_mem_ptr (uint32 addr, uint32 size);
-static void store_bytes (unsigned char *mem, uint32 waddr,
+static char *get_mem_ptr (uint32 addr, uint32 size);
+static void store_bytes (char *mem, uint32 waddr,
uint32 * data, int sz, int32 * ws);
/* One-time init. */
@@ -791,7 +791,7 @@ timer_ctrl (uint32 val, int i)
2 (one word), or 3 (two words); WS should return the number of wait-states. */
static void
-store_bytes (unsigned char *mem, uint32 waddr, uint32 * data, int32 sz,
+store_bytes (char *mem, uint32 waddr, uint32 * data, int32 sz,
int32 * ws)
{
switch (sz)
@@ -916,7 +916,7 @@ memory_write (uint32 addr, uint32 * data, int32 sz, int32 * ws)
return 1;
}
-static unsigned char *
+static char *
get_mem_ptr (uint32 addr, uint32 size)
{
if ((addr + size) < ROM_END)
@@ -932,7 +932,7 @@ get_mem_ptr (uint32 addr, uint32 size)
}
static int
-sis_memory_write (uint32 addr, const unsigned char *data, uint32 length)
+sis_memory_write (uint32 addr, const char *data, uint32 length)
{
char *mem;
@@ -948,7 +948,7 @@ sis_memory_read (uint32 addr, char *data, uint32 length)
{
char *mem;
int ws;
- int w4;
+ unsigned int w4;
if (length == 4)
{