]> Git Repo - qemu.git/blobdiff - target-openrisc/exception.c
cpu: move exec-all.h inclusion out of cpu.h
[qemu.git] / target-openrisc / exception.c
index 58e53c6c9857af9caf3d505b1e4751096a380445..49470be051ee97deeead443445378f23d16f0246 100644 (file)
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu/osdep.h"
 #include "cpu.h"
+#include "exec/exec-all.h"
 #include "exception.h"
 
 void QEMU_NORETURN raise_exception(OpenRISCCPU *cpu, uint32_t excp)
 {
-    cpu->env.exception_index = excp;
-    cpu_loop_exit(&cpu->env);
+    CPUState *cs = CPU(cpu);
+
+    cs->exception_index = excp;
+    cpu_loop_exit(cs);
 }
This page took 0.020574 seconds and 4 git commands to generate.