aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog6
-rw-r--r--sim/mips/dv-tx3904sio.c4
-rw-r--r--sim/mips/interp.c6
3 files changed, 11 insertions, 5 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 149bded..b19991f 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-14 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-tx3904sio.c (tx3904sio_fifo_push): Change zfree to free.
+ (tx3904sio_fifo_reset): Likewise.
+ * interp.c (sim_monitor): Likewise.
+
2010-04-14 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_write): Add const to buffer arg.
diff --git a/sim/mips/dv-tx3904sio.c b/sim/mips/dv-tx3904sio.c
index 2156f58..24f0702 100644
--- a/sim/mips/dv-tx3904sio.c
+++ b/sim/mips/dv-tx3904sio.c
@@ -583,7 +583,7 @@ tx3904sio_fifo_push(struct hw* me, struct tx3904sio_fifo* fifo, char it)
char* next_buf = zalloc(next_size);
memcpy(next_buf, fifo->buffer, fifo->used);
- if(fifo->buffer != NULL) zfree(fifo->buffer);
+ if(fifo->buffer != NULL) free(fifo->buffer);
fifo->buffer = next_buf;
fifo->size = next_size;
}
@@ -599,7 +599,7 @@ tx3904sio_fifo_reset(struct hw* me, struct tx3904sio_fifo* fifo)
/* HW_TRACE ((me, "reset fifo")); */
fifo->used = 0;
fifo->size = 0;
- zfree(fifo->buffer);
+ free(fifo->buffer);
fifo->buffer = 0;
}
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index a276d06..492ae60 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -1285,7 +1285,7 @@ sim_monitor (SIM_DESC sd,
{
char *path = fetch_str (sd, A0);
V0 = sim_io_open (sd, path, (int)A1);
- zfree (path);
+ free (path);
break;
}
@@ -1296,7 +1296,7 @@ sim_monitor (SIM_DESC sd,
char *buf = zalloc (nr);
V0 = sim_io_read (sd, fd, buf, nr);
sim_write (sd, A1, buf, nr);
- zfree (buf);
+ free (buf);
}
break;
@@ -1311,7 +1311,7 @@ sim_monitor (SIM_DESC sd,
sim_io_flush_stdout (sd);
else if (fd == 2)
sim_io_flush_stderr (sd);
- zfree (buf);
+ free (buf);
break;
}