]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-lm32/helper.c
cpu-exec: Make debug_excp_handler a QOM CPU method
[mirror_qemu.git] / target-lm32 / helper.c
index 1bca1961af1f350ed9254484dc593f56edc8aab6..ad724aecbc24c89e3a6b7ed966af950b359a5c69 100644 (file)
@@ -125,9 +125,10 @@ static bool check_watchpoints(CPULM32State *env)
     return false;
 }
 
-void lm32_debug_excp_handler(CPULM32State *env)
+void lm32_debug_excp_handler(CPUState *cs)
 {
-    CPUState *cs = CPU(lm32_env_get_cpu(env));
+    LM32CPU *cpu = LM32_CPU(cs);
+    CPULM32State *env = &cpu->env;
     CPUBreakpoint *bp;
 
     if (cs->watchpoint_hit) {