diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-05-22 05:23:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-05-22 05:23:04 +0000 |
commit | f872d0d643968c1101bb8c07b252edd54f626da2 (patch) | |
tree | 2adb6b0e807371efa17f46a5c5625194d770abac /sim/mips/dv-tx3904irc.c | |
parent | 32d41f6ddbcfdca096f753adaa17691d7a1b4afd (diff) | |
download | gdb-f872d0d643968c1101bb8c07b252edd54f626da2.zip gdb-f872d0d643968c1101bb8c07b252edd54f626da2.tar.gz gdb-f872d0d643968c1101bb8c07b252edd54f626da2.tar.bz2 |
Only enable H/W on some mips targets.
Move common hw-obj to Make-common
Pacify GCC
Diffstat (limited to 'sim/mips/dv-tx3904irc.c')
-rw-r--r-- | sim/mips/dv-tx3904irc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/mips/dv-tx3904irc.c b/sim/mips/dv-tx3904irc.c index f11f4c0..d8064d3 100644 --- a/sim/mips/dv-tx3904irc.c +++ b/sim/mips/dv-tx3904irc.c @@ -217,7 +217,6 @@ attach_tx3904irc_regs (struct hw *me, static void tx3904irc_finish (struct hw *me) { - int i; struct tx3904irc *controller; controller = HW_ZALLOC (me, struct tx3904irc); @@ -274,7 +273,7 @@ tx3904irc_port_event (struct hw *me, if(ILR_GET(controller, source) > IMR_GET(controller)) { int ip_number = 16 + source; /* compute IP[4:0] */ - HW_TRACE ((me, "interrupt level %d", ILR_GET(controller,source))); + HW_TRACE ((me, "interrupt level %ld", ILR_GET(controller,source))); hw_port_event(me, IP_PORT, ip_number); } break; @@ -336,7 +335,7 @@ tx3904irc_io_read_buffer (struct hw *me, } /* write requested byte out */ - memcpy(dest+byte, ((char*)& register_value)+reg_offset, 1); + memcpy ((char*) dest + byte, ((char*)& register_value)+reg_offset, 1); } return nr_bytes; @@ -378,7 +377,7 @@ tx3904irc_io_write_buffer (struct hw *me, HW_TRACE ((me, "reg %d pre: %08lx", reg_number, (long) *register_ptr)); /* overwrite requested byte */ - memcpy(((char*)register_ptr)+reg_offset, source+byte, 1); + memcpy (((char*)register_ptr)+reg_offset, (char*)source + byte, 1); HW_TRACE ((me, "post: %08lx", (long) *register_ptr)); } |