diff options
Diffstat (limited to 'sim/common/sim-hrw.c')
-rw-r--r-- | sim/common/sim-hrw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/sim-hrw.c b/sim/common/sim-hrw.c index 01a4f21..2596019 100644 --- a/sim/common/sim-hrw.c +++ b/sim/common/sim-hrw.c @@ -27,17 +27,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ modeling real hardware */ int -sim_read (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length) +sim_read (SIM_DESC sd, SIM_ADDR mem, void *buffer, int length) { SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); return sim_core_read_buffer (sd, NULL, read_map, - buf, mem, length); + buffer, mem, length); } int -sim_write (SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length) +sim_write (SIM_DESC sd, SIM_ADDR mem, const void *buffer, int length) { SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); return sim_core_write_buffer (sd, NULL, write_map, - buf, mem, length); + buffer, mem, length); } |