From nobody Fri Dec 19 19:14:26 2025 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 (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516593942087822.5840051615468; Sun, 21 Jan 2018 20:05:42 -0800 (PST) Received: from localhost ([::1]:41766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edTMb-0005pJ-98 for importer@patchew.org; Sun, 21 Jan 2018 23:05:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edT0e-0005ls-RA for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edT0b-0006cx-9N for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:00 -0500 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:35399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edT0b-0006cd-3q for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:42:57 -0500 Received: by mail-pf0-x244.google.com with SMTP id t12so6084435pfg.2 for ; Sun, 21 Jan 2018 19:42:56 -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 z125sm182023pfz.27.2018.01.21.19.42.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jan 2018 19:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+LBPh6yn6UG1tncxst9Z9jkRXDXaqBy3i48OJuMm2Uw=; b=NO27F4WlC4xeAge41//flrsToc+Glnbkg81W+wWvrpPqFt70t2jOtlE4otU6uZ4ulw N+RBc5DjtpnPxgavTlm+zmLrBhI6tgeI6ioBfxl63fu88UoosJADmcR7n7n061MOTb7k C1RCYozypUQHt+m3duY4riA7cUyHO2sbGyCus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+LBPh6yn6UG1tncxst9Z9jkRXDXaqBy3i48OJuMm2Uw=; b=SaYmQoQQD0yyOtdQuAs66BkgXaqV0vtovf70RdFsMUwXU255Qlh5py/q+VSo3Iry5w IM5dR+fUeIK/Gq6z0vYXvQB2xcBfKJcU8eVPVKk2HIfjHZjn0EeUs6OPzhGd/26ELvti l59WiiY6mRp4h/baa97N3vJg7JPgTMaiQKoQzPLsXEQSBxpE91Nmz82SKdumTgePE+Pm AocDn82fCVxgGXEAD3Dtw0YwwVrwf6U4PcaVkWJWJnva7oEVKyeJbVP2UgkINbOdMY8T 1S04AFYhYB+aaS3OcZZefpPFslNqt1R4I4KavoC6UEk0BKGAovhVx10MulUt/sIsuHAR b9xA== X-Gm-Message-State: AKwxytc4O1u0uLC1jB/nfdWHxsehnkuhMA2zLegdhxfIMR0tJW+C2a/d 0IcaLt6C3YjtS4S1z8M05eBmWxkSmZ4= X-Google-Smtp-Source: AH8x226Ih8X+cIqnJFOuWVleE9Xrvg8ZDmT8o111VGHBKNsqcYCjiF8iorv7VdMXrETEn/c9su4//A== X-Received: by 10.99.49.200 with SMTP id x191mr5871060pgx.394.1516592575858; Sun, 21 Jan 2018 19:42:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 21 Jan 2018 19:41:59 -0800 Message-Id: <20180122034217.19593-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180122034217.19593-1-richard.henderson@linaro.org> References: <20180122034217.19593-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:c00::244 Subject: [Qemu-devel] [PULL 25/43] 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: , Cc: peter.maydell@linaro.org 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 bbef2f0d7f..b207ae192a 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2451,6 +2451,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 { @@ -2479,6 +2498,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