From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6lFS-0004FA-IB for qemu-devel@nongnu.org; Thu, 22 Sep 2011 11:31:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6lFQ-0006Ru-TE for qemu-devel@nongnu.org; Thu, 22 Sep 2011 11:31:38 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:47879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6lFQ-0006Rk-KU for qemu-devel@nongnu.org; Thu, 22 Sep 2011 11:31:36 -0400 Received: by wyh22 with SMTP id 22so3246466wyh.4 for ; Thu, 22 Sep 2011 08:31:35 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 22 Sep 2011 08:30:44 -0700 Message-Id: <1316705449-17187-2-git-send-email-rth@twiddle.net> In-Reply-To: <1316705449-17187-1-git-send-email-rth@twiddle.net> References: <1316705449-17187-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 1/6] target-alpha: Honor icount for RPCC instruction. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Richard Henderson --- target-alpha/translate.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 1e224a2..fb2e9e5 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -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 */ -- 1.7.6.2