aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/dv-tx3904cpu.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-06-04 12:43:45 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-06-04 12:43:45 +0000
commitda040f2a6c7a5dfa3c2bacecc97128ac4477d904 (patch)
treed277d4307eecfd810b83c298ab6c1d9fdef7419c /sim/mips/dv-tx3904cpu.c
parent0e797366efd0c7aad9acddcaeac4a55a0fd8bfb7 (diff)
downloadgdb-da040f2a6c7a5dfa3c2bacecc97128ac4477d904.zip
gdb-da040f2a6c7a5dfa3c2bacecc97128ac4477d904.tar.gz
gdb-da040f2a6c7a5dfa3c2bacecc97128ac4477d904.tar.bz2
* Early check-in of tx3904 timer sim implementation for ECC.
It is not yet properly tested. Thu Jun 4 15:37:33 1998 Frank Ch. Eigler <fche@cygnus.com> * dv-tx3904tmr.c: New file - implements tx3904 timer. * dv-tx3904{irc,cpu}.c: Mild reformatting. * configure.in: Include tx3904tmr in hw_device list. * configure: Rebuilt. * interp.c (sim_open): Instantiate three timer instances. Fix address typo of tx3904irc instance.
Diffstat (limited to 'sim/mips/dv-tx3904cpu.c')
-rw-r--r--sim/mips/dv-tx3904cpu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/mips/dv-tx3904cpu.c b/sim/mips/dv-tx3904cpu.c
index f756f22..d043253 100644
--- a/sim/mips/dv-tx3904cpu.c
+++ b/sim/mips/dv-tx3904cpu.c
@@ -21,7 +21,7 @@
#include "sim-main.h"
-#include "hw-base.h"
+#include "hw-main.h"
/* DEVICE
@@ -109,7 +109,7 @@ static const struct hw_port_descriptor tx3904cpu_ports[] = {
/* Finish off the partially created hw device. Attach our local
callbacks. Wire up our port names etc */
-static hw_port_event_callback tx3904cpu_port_event;
+static hw_port_event_method tx3904cpu_port_event;
@@ -138,8 +138,8 @@ deliver_tx3904cpu_interrupt (struct hw *me,
void *data)
{
struct tx3904cpu *controller = hw_data (me);
- SIM_DESC simulator = hw_system (me);
- sim_cpu *cpu = STATE_CPU (simulator, 0); /* NB: fix CPU 0. */
+ SIM_DESC sd = hw_system (me);
+ sim_cpu *cpu = STATE_CPU (sd, 0); /* NB: fix CPU 0. */
address_word cia = CIA_GET (cpu);
#define CPU cpu
@@ -224,7 +224,7 @@ tx3904cpu_port_event (struct hw *me,
}
-const struct hw_device_descriptor dv_tx3904cpu_descriptor[] = {
+const struct hw_descriptor dv_tx3904cpu_descriptor[] = {
{ "tx3904cpu", tx3904cpu_finish, },
{ NULL },
};