From patchwork Thu Sep 22 15:30:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115957 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 05A2DB6F7F for ; Fri, 23 Sep 2011 01:31:51 +1000 (EST) Received: from localhost ([::1]:33268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6lFb-0004Fd-QN for incoming@patchwork.ozlabs.org; Thu, 22 Sep 2011 11:31:47 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=qSnXDTVkiW/F5E82X5whZf9QDyAzwagGrPhhGARuNEI=; b=qz74F8GctzpQMIJTzs/O0OKUQIj/mS2Obv0drQZ/ZCNejIi+Bdnt52NqkMit7pPXju IoR9sz+qzWotFdFSFhqDG22ScGFXbJ+l553/WglHx8U9FFNi4DQvC0L3q3RXC5kWR/pJ LwC2TzE1XBQlh9qGdTS0nZQ4UKJ/is0knAc9Y= Received: by 10.227.120.199 with SMTP id e7mr784426wbr.63.1316705495618; Thu, 22 Sep 2011 08:31:35 -0700 (PDT) Received: from localhost.localdomain (c-71-227-161-214.hsd1.wa.comcast.net. [71.227.161.214]) by mx.google.com with ESMTPS id fa3sm12030729wbb.3.2011.09.22.08.31.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 08:31:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 22 Sep 2011 08:30:44 -0700 Message-Id: <1316705449-17187-2-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.6.2 In-Reply-To: <1316705449-17187-1-git-send-email-rth@twiddle.net> References: <1316705449-17187-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.173 Subject: [Qemu-devel] [PATCH 1/6] target-alpha: Honor icount for RPCC instruction. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 */