]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/m32r/devices.c
import gdb-19990422 snapshot
[thirdparty/binutils-gdb.git] / sim / m32r / devices.c
index d706869ad3b84587cdfbd3ca0f43fbc91e0e8e07..032c8e711466b48d31837c95f689f16e7bd2e9b4 100644 (file)
@@ -32,10 +32,8 @@ device m32r_devices;
 int
 device_io_read_buffer (device *me, void *source, int space,
                       address_word addr, unsigned nr_bytes,
-                      SIM_CPU *cpu, sim_cia cia)
+                      SIM_DESC sd, SIM_CPU *cpu, sim_cia cia)
 {
-  SIM_DESC sd = CPU_STATE (cpu);
-
   if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
     return nr_bytes;
 
@@ -70,10 +68,8 @@ device_io_read_buffer (device *me, void *source, int space,
 int
 device_io_write_buffer (device *me, const void *source, int space,
                        address_word addr, unsigned nr_bytes,
-                       SIM_CPU *cpu, sim_cia cia)
+                       SIM_DESC sd, SIM_CPU *cpu, sim_cia cia)
 {
-  SIM_DESC sd = CPU_STATE (cpu);
-
 #if WITH_SCACHE
   /* MSPR support is deprecated but is kept in for upward compatibility
      with existing overlay support.  */
@@ -105,4 +101,7 @@ device_io_write_buffer (device *me, const void *source, int space,
   return nr_bytes;
 }
 
-void device_error () {}
+void
+device_error (device *me, char *message, ...)
+{
+}