* gas/config/tc-avr.c: Change ISA for devices with USB support to
[external/binutils.git] / sim / ppc / hw_core.c
index 8dba11b..0aa0fdd 100644 (file)
@@ -4,7 +4,7 @@
     
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation; either version 3 of the License, or
     (at your option) any later version.
     
     This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
     GNU General Public License for more details.
     
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
     
     */
 
@@ -59,13 +58,12 @@ hw_core_init_address_callback(device *me)
 
 static void
 hw_core_attach_address_callback(device *me,
-                               const char *name,
                                attach_type attach,
                                int space,
                                unsigned_word addr,
                                unsigned nr_bytes,
                                access_type access,
-                               device *who) /*callback/default*/
+                               device *client) /*callback/default*/
 {
   core *memory = (core*)device_data(me);
   if (space != 0)
@@ -76,7 +74,7 @@ hw_core_attach_address_callback(device *me,
              access,
              addr,
              nr_bytes,
-             who);
+             client);
 }
 
 
@@ -121,7 +119,9 @@ static device_callbacks const hw_core_callbacks = {
     hw_core_dma_write_buffer_callback, },
   { NULL, }, /* interrupt */
   { generic_device_unit_decode,
-    generic_device_unit_encode, }
+    generic_device_unit_encode,
+    generic_device_address_to_attach_address,
+    generic_device_size_to_attach_size, },
 };