Message ID | 20171229063145.29167-27-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4338232qgn; Thu, 28 Dec 2017 22:54:55 -0800 (PST) X-Google-Smtp-Source: ACJfBosUdLdxLDgOmOHVfhMFcRJCHJgRRtrGYjOIzBm8OcCA8sWM2o968TbAzTYx8fFvR2hpc5Ce X-Received: by 10.37.76.201 with SMTP id z192mr9113051yba.272.1514530495773; Thu, 28 Dec 2017 22:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514530495; cv=none; d=google.com; s=arc-20160816; b=EGean8Lm83k8lK1XHyQvwZMHMD5tKejbGJx7PneJ02KDBczzU5Fg9B3goqbVJcfepD /Ud4KK52mmlfUd4De5RB/Kev+HnvFAvvq2zulu44MkOZfbAL9hOmOgXQXABgoleY+AAh ZCwhB1ocDVEmO86cSbTdN3K4/CVqSq9aK0D5HevSgTIwwgaOR5e+Wy38gxiogNiqLK64 /NqI9KdG2O0f2aTFkLraouUmbV7ScVG1T2L4BRBFeW/k+dJhnkOW6WPDcEEVSQ9TmJHN T48lnQcy5D2dCnynce9OAOTmiZ4GU6Su1dGDsN+aRYuoEd7igJ+0fu8iX3FichiUhJ+T T2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=sOML06vkT4KHCSC5eOi3peqgILjV/PKgKOmv7Et4M0M=; b=X5QbkGEFDpQhi36GSfp9IFSPctZn1aVTmGKJi3rGg3TDZshacwqnxVGmcDo0E6jPgy b8u5qvv/W11+KCuaFMW00ayOgSZ4cCkZ5FlxiVk5bjmPFGVXhItf5ciXhAgnh2LJfzdZ 28zcwsVd6WwnqV6oLig0c5J8vP2UFHIkOqasrWuZxCtVi7YSnjm6Iy9fuJYrMgic/d/n V9cf7nuLCwqBiA34by1WHZO89FFUNnGOlA5GO15monwR8r6aY80hHGFNAHaZ2FiX1jY2 lXcXrQA1XabkdxuojImZFjWvxNUPJkrJVHhfiPbVilY6ZWUGWk6z9aG3uxSm8wDMpsGP 4K+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PeY9Sh3z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o12si7032951ywm.655.2017.12.28.22.54.55 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Dec 2017 22:54:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PeY9Sh3z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eUoZD-00058x-7n for patch@linaro.org; Fri, 29 Dec 2017 01:54:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDR-0003G1-3e for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDP-0004oq-PP for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:24 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:43808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDP-0004oZ-KH for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:23 -0500 Received: by mail-pg0-x244.google.com with SMTP id f18so4054644pga.10 for <qemu-devel@nongnu.org>; Thu, 28 Dec 2017 22:32:23 -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=sOML06vkT4KHCSC5eOi3peqgILjV/PKgKOmv7Et4M0M=; b=PeY9Sh3zt3XfZe4Q+k1tJaP+eEUOuTT3CgzrqWpSU/zGaRpCtOJ6W4rgi0+MiFL/nU ZZGe+5rkxRoF8z54cPHSwelCvJtM3FwSf1ShTsGTdBhWqRD+BIOBz5lQpHhrzlAQcp/a Gl+8ki4GkqoNhYekvW/wGhvH1GsKaHQohUyiw= 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=sOML06vkT4KHCSC5eOi3peqgILjV/PKgKOmv7Et4M0M=; b=L3fDp3mFsg4cZ/56sIhBVn9eZ3NjTjV/9jnYvEWR/T51t3E+C0buH657YSimUVMECn OJbSokyeYuyppDyoSRniztzVBSQvIBvNlzei4Qksbl5rpZ6gTzrP8UuFyHJsk/ffOmXW qBtZMZLbYzUGemGfOH/Xljjh1xzQh+LAiqcfOJeCLzwcik13k8QHH5xYxqeSwRTd5hkp gLYn5OjGsyPf6Qgm/SuDGhEN2tCURSQFquiEnriBXppS9xFDQ/aijbwTmp29WxosbyHO N8fo3JkPFaUSTI7TZY11DghqFSnfcgqsecLnV2lrvjYVH+GSNakuWfZrpO7P5+eLCwXx b1xQ== X-Gm-Message-State: AKGB3mKRYNaVRtuDd9Xo/hxAnuJy7qXswSL7iE0kGGyKYfsUeGz+IF5D SJzc+IKZBZzAHLaBzO3Y8UtMMq9v010= X-Received: by 10.98.24.207 with SMTP id 198mr34084109pfy.3.1514529142415; Thu, 28 Dec 2017 22:32:22 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-183-164.tukw.qwest.net. [97.113.183.164]) by smtp.gmail.com with ESMTPSA id c28sm76539063pfe.69.2017.12.28.22.32.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 22:32:21 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 28 Dec 2017 22:31:33 -0800 Message-Id: <20171229063145.29167-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171229063145.29167-1-richard.henderson@linaro.org> References: <20171229063145.29167-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::244 Subject: [Qemu-devel] [PATCH 26/38] target/hppa: Implement LCI X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: deller@gmx.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Add hppa-softmmu
|
expand
|
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index ec61c57e55..2e3edf8957 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2453,6 +2453,25 @@ static DisasJumpType trans_lpa(DisasContext *ctx, uint32_t insn, return nullify_end(ctx, DISAS_NEXT); } + +static DisasJumpType trans_lci(DisasContext *ctx, uint32_t insn, + const DisasInsn *di) +{ + unsigned rt = 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 = tcg_const_reg(0); + save_gpr(ctx, rt, ci); + tcg_temp_free(ci); + + return DISAS_NEXT; +} #endif /* !CONFIG_USER_ONLY */ static const DisasInsn table_mem_mgmt[] = { @@ -2481,6 +2500,7 @@ static const DisasInsn table_mem_mgmt[] = { { 0x04001200u, 0xfc001fdfu, trans_pxtlbx }, /* pdtlb */ { 0x04001240u, 0xfc001fdfu, trans_pxtlbx }, /* pdtlbe */ { 0x04001340u, 0xfc003fc0u, trans_lpa }, + { 0x04001300u, 0xfc003fe0u, trans_lci }, #endif };
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/hppa/translate.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.14.3