]> git.proxmox.com Git - qemu.git/commitdiff
target-alpha: Honor icount for RPCC instruction.
authorRichard Henderson <rth@twiddle.net>
Thu, 22 Sep 2011 15:11:18 +0000 (08:11 -0700)
committerRichard Henderson <rth@twiddle.net>
Sat, 8 Oct 2011 15:46:03 +0000 (08:46 -0700)
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-alpha/translate.c

index 1e224a2152bef0b25a15c59f9dd5454f5cf6a426..fb2e9e5f60a94365cf11022fbea49ced93fa602e 100644 (file)
@@ -2721,8 +2721,16 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
             break;
         case 0xC000:
             /* RPCC */
-            if (ra != 31)
-                gen_helper_load_pcc(cpu_ir[ra]);
+            if (ra != 31) {
+                if (use_icount) {
+                    gen_io_start();
+                    gen_helper_load_pcc(cpu_ir[ra]);
+                    gen_io_end();
+                    ret = EXIT_PC_STALE;
+                } else {
+                    gen_helper_load_pcc(cpu_ir[ra]);
+                }
+            }
             break;
         case 0xE000:
             /* RC */