]> git.proxmox.com Git - qemu.git/blobdiff - target-xtensa/op_helper.c
target-xtensa: implement disas_xtensa_insn
[qemu.git] / target-xtensa / op_helper.c
index aafa33d8bd73f167081af16b8d8955c56e273a2e..0392fbe6bb06b7497411d8aefb2beb95f1c3ced1 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "cpu.h"
 #include "dyngen-exec.h"
+#include "helpers.h"
 
 #define MMUSUFFIX _mmu
 
@@ -50,3 +51,9 @@ void tlb_fill(target_ulong addr, int is_write, int mmu_idx, void *retaddr)
             PAGE_READ | PAGE_WRITE | PAGE_EXEC,
             mmu_idx, TARGET_PAGE_SIZE);
 }
+
+void HELPER(exception)(uint32_t excp)
+{
+    env->exception_index = excp;
+    cpu_loop_exit(env);
+}