]> git.proxmox.com Git - qemu.git/blobdiff - target-openrisc/exception_helper.c
target-openrisc: Detect attempt to instantiate non-CPU type in cpu_init()
[qemu.git] / target-openrisc / exception_helper.c
index dab4148151941ac845da9e86852e7d8a0a91596b..0c53b7755b5d9c8fd835ade2a81d3d5090c7b720 100644 (file)
@@ -23,7 +23,7 @@
 
 void HELPER(exception)(CPUOpenRISCState *env, uint32_t excp)
 {
-    OpenRISCCPU *cpu = OPENRISC_CPU(ENV_GET_CPU(env));
+    OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
 
     raise_exception(cpu, excp);
 }