Fix gdb.base/all-architectures-2.exp failures
[deliverable/binutils-gdb.git] / sim / ppc / hw_memory.c
index 117324b0eddd969cd62ee6220394253a4234e0a7..09c331c3295b482dd942350c338bfc26cf5343da 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/>.
  
     */
 
@@ -26,6 +25,8 @@
 #define STATIC_INLINE_HW_MEMORY STATIC_INLINE
 #endif
 
+#include <stdlib.h>
+
 #include "device_table.h"
 
 /* DEVICE
@@ -138,7 +139,7 @@ hw_memory_set_available(device *me,
   }
   /* update */
   device_set_array_property(me, "available", available, sizeof_available);
-  zfree(available);
+  free(available);
 }
 
 
@@ -155,7 +156,7 @@ hw_memory_init_address(device *me)
       hw_memory_chunk *dead_chunk = curr_chunk;
       curr_chunk = dead_chunk->next;
       dead_chunk->next = NULL;
-      zfree(dead_chunk);
+      free(dead_chunk);
     }
   }
 
@@ -483,7 +484,7 @@ hw_memory_instance_release(device_instance *instance,
       ASSERT(chunk->address + chunk->size == delete->address);
       chunk->size += delete->size;
       chunk->next = delete->next;
-      zfree(delete);
+      free(delete);
     }
     else {
       chunk = chunk->next;
This page took 0.023762 seconds and 4 git commands to generate.