]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/m68k-sim.c
target/s390x: Use env_cpu, env_archcpu
[mirror_qemu.git] / linux-user / m68k-sim.c
index d5926eec4b90854a3cd1cfcf5d6fce0bf2492665..9bc6ff3d3a0a4e8f0b79661ad6d33e61d34585e5 100644 (file)
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
+#include "qemu/osdep.h"
 
 #include "qemu.h"
 
@@ -165,6 +158,6 @@ void do_m68k_simcall(CPUM68KState *env, int nr)
         check_err(env, lseek(ARG(0), (int32_t)ARG(1), ARG(2)));
         break;
     default:
-        cpu_abort(env, "Unsupported m68k sim syscall %d\n", nr);
+        cpu_abort(env_cpu(env), "Unsupported m68k sim syscall %d\n", nr);
     }
 }