]> git.proxmox.com Git - qemu.git/blobdiff - target-alpha/translate.c
cpu: Replace do_interrupt() by CPUClass::do_interrupt method
[qemu.git] / target-alpha / translate.c
index 657f5e1e5f93a8a409733302e08e2cc7cca148f4..4db16db462c68e4aa294668dabe2c7c88c091811 100644 (file)
@@ -1686,7 +1686,8 @@ static ExitStatus gen_mtpr(DisasContext *ctx, int rb, int regno)
     case 253:
         /* WAIT */
         tmp = tcg_const_i64(1);
-        tcg_gen_st32_i64(tmp, cpu_env, offsetof(CPUAlphaState, halted));
+        tcg_gen_st32_i64(tmp, cpu_env, -offsetof(AlphaCPU, env) +
+                                       offsetof(CPUState, halted));
         return gen_excp(ctx, EXCP_HLT, 0);
 
     case 252: