From nobody Wed Feb 11 05:11:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516837232335679.2546278604642; Wed, 24 Jan 2018 15:40:32 -0800 (PST) Received: from localhost ([::1]:54533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeUeY-0006dB-7o for importer@patchew.org; Wed, 24 Jan 2018 18:40:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeURg-0004qv-Vi for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeURg-0001yU-3X for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:08 -0500 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:35172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeURf-0001yB-V7 for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:08 -0500 Received: by mail-pg0-x242.google.com with SMTP id o13so3818865pgs.2 for ; Wed, 24 Jan 2018 15:27:07 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id z19sm9760028pfh.185.2018.01.24.15.27.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 15:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=8xzSBqTDqbAsaks2scycjrLsfLpa0BF7CTKM2I7mUds=; b=FJEllaNASdWItq4Lnay5z+4iu9sx5JUOKbP7tasq2U+2sg/pC3dCML9bj7oa8JNtj5 355l6P/X78k7jjWk/NUDx3w5lkT9P5RV1V05fCuYSY2HZ2rf7JGmpS3ZTDOtDl9PMEMu v+bH7jYir4AWjsDjYlYs1UIYz+2vUH+HugApk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=8xzSBqTDqbAsaks2scycjrLsfLpa0BF7CTKM2I7mUds=; b=NOq7V0zDZPNt3pQ/3dRnbI3A/+UM+DKXECfd579OKisbtpYNw/oh3Foo84lqAaBXNZ 6ZJ6aeeqTdlL4bTTNI1C9AD1JgjzyBTJ32ifPCem+cYbEeoWlFNLYPFuB9fRsTrbJCHW +gi9nWkd7XbYkWXsXZfPHYNFJf4YH+I+hBpzJwkueQG9xyslQdP1XE74l07oTMdnjeit z90/RUHbq98oE1DZnaG4wKjISf6gUbpzQYWp37LQPQfQrfci3JlGfhS6xWJSniKG61Uq CTkZXQeidqF1HPfF/NHnWCjx/QNOLRRylOfObfHPejyKbsuI4dVHmc4fevaG3OgSg9QG lyuA== X-Gm-Message-State: AKwxytcTG/a8/mPAdradDWDbEv2Co8EehtNX6Z+7QKLALJEpNMaOh4uI hxXZuVUtsVEJccaVdqhIyHJ8Fh/cse8= X-Google-Smtp-Source: AH8x227wcJoA9CheD6PGdgsyXoWuu5apBZA1qbpbnOH23yH81vxXCC44apgtUc6yQRMT4+nsXz91HA== X-Received: by 10.99.160.88 with SMTP id u24mr11811479pgn.122.1516836426718; Wed, 24 Jan 2018 15:27:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 24 Jan 2018 15:26:05 -0800 Message-Id: <20180124232625.30105-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180124232625.30105-1-richard.henderson@linaro.org> References: <20180124232625.30105-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::242 Subject: [Qemu-devel] [PATCH v3 25/45] target/hppa: Implement LCI X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/hppa/translate.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 082221f450..41e28ff64c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2462,6 +2462,25 @@ static DisasJumpType trans_lpa(DisasContext *ctx, ui= nt32_t insn, =20 return nullify_end(ctx, DISAS_NEXT); } + +static DisasJumpType trans_lci(DisasContext *ctx, uint32_t insn, + const DisasInsn *di) +{ + unsigned rt =3D extract32(insn, 0, 5); + TCGv_reg ci; + + CHECK_MOST_PRIVILEGED(EXCP_PRIV_OPR); + + /* The Coherence Index is an implementation-defined function of the + physical address. Two addresses with the same CI have a coherent + view of the cache. Our implementation is to return 0 for all, + since the entire address space is coherent. */ + ci =3D tcg_const_reg(0); + save_gpr(ctx, rt, ci); + tcg_temp_free(ci); + + return DISAS_NEXT; +} #endif /* !CONFIG_USER_ONLY */ =20 static const DisasInsn table_mem_mgmt[] =3D { @@ -2490,6 +2509,7 @@ static const DisasInsn table_mem_mgmt[] =3D { { 0x04001200u, 0xfc001fdfu, trans_pxtlbx }, /* pdtlb */ { 0x04001240u, 0xfc001fdfu, trans_pxtlbx }, /* pdtlbe */ { 0x04001340u, 0xfc003fc0u, trans_lpa }, + { 0x04001300u, 0xfc003fe0u, trans_lci }, #endif }; =20 --=20 2.14.3