added #include <stdlib.h> to get rid of errors building with gcc-4.4 on ubuntu
authorRimas Avizienis <rimas@eecs.berkeley.edu>
Wed, 13 Jul 2011 08:41:43 +0000 (01:41 -0700)
committerRimas Avizienis <rimas@eecs.berkeley.edu>
Wed, 13 Jul 2011 08:41:43 +0000 (01:41 -0700)
riscv/interactive.cc
riscv/riscv-isa-run.cc

index 4f7891f1bd924035881eee38ce2d1aec3c5c981c..a81e2f2e73fcb6bbbe0f73adb1ba04f252afd2b9 100644 (file)
@@ -5,6 +5,7 @@
 #include <iostream>
 #include <climits>
 #include <assert.h>
+#include <stdlib.h>
 
 void sim_t::interactive()
 {
index a0af8dee053c8839ba6fb39b06e8997cad116977..f73cc5504fb0ea3d566cd46104d6a8eb91a82d9b 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include "sim.h"
 #include "htif.h"