Message ID | 20180128231528.22719-26-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 43a97b81b5ae791bfdb2470b9be749155a968604 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1984989ljd; Sun, 28 Jan 2018 15:39:03 -0800 (PST) X-Google-Smtp-Source: AH8x224luXmrj4Bt2i7SNmUJ1zrzwQju0i0Q7/KLcWD3WvniRyv1cV+g8g+rZdCil4Bspm2gHeMM X-Received: by 10.37.176.135 with SMTP id f7mr6493961ybj.239.1517182743715; Sun, 28 Jan 2018 15:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517182743; cv=none; d=google.com; s=arc-20160816; b=N5hwPXKKT4gf5KXJYx3Vs+QiFx20vR0EIRkPlN1KKdul86NtoGZeG0Zu8zXVGpQnB5 AGYNCmDHWFgIQbONMDwL4cuXpTuFprdvdb4LEsQR6W+jUtcX6dd3d6lm3jBvPh3eMEgJ ZhYpZAT4VSvNDMyiHKGyJmXqA7IcH14bLlx4FokGv2lJBFzqOJn2tl4GpUsDnyYw24gA maEnlY34IYwtlPtevHPMztyolqaDYsvTYv3xek0qQGPfGvNWTDRz4pw2OC/nk9M/ppsu MBOhpAmIsVAKo8NwKdhDMw5kgbFrrs830zF8RwC1fBCiCc1bPuJDPFd9sM9sljQ0njhO w28A== 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=8xzSBqTDqbAsaks2scycjrLsfLpa0BF7CTKM2I7mUds=; b=t0do6sz0Ti+S3kF/1EjhIq19xLsPAtxcMqFQRaqwL8a05sd93vkbPIF2z2yxDz852t okKPUF4Q9odoTu9D5XQ/WD3KUnTPkEL6lsjV4Kzm4WDVHzGMmrHQMwknDs0UU3t7icrN KvvbubVWE0+drQ2ZKO1WxpZVHsuDp1JQ5renE13caZ6F+933ZWgLBVcXPeqtZwxn5caY ELP9IOgN1zlIYac4OUsAyBCvNPJ+ZXnVjHh0o26CKOkY30z9tQJeoXsAGoV8ACjXtvoh gse18rQfxtU280SUanP0KVuCNlUnGpR/FS2MguphFr0RTpKavDMxhOciGoHvNEbNKXrl 5WVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RhwczZgu; 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 e9si1816761ywb.550.2018.01.28.15.39.03 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 28 Jan 2018 15:39:03 -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=RhwczZgu; 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]:45054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1efwXP-0002ah-49 for patch@linaro.org; Sun, 28 Jan 2018 18:39:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1efwBI-0002xm-6e for qemu-devel@nongnu.org; Sun, 28 Jan 2018 18:16:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1efwBH-0000A9-Ah for qemu-devel@nongnu.org; Sun, 28 Jan 2018 18:16:12 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:36686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1efwBH-00009b-4S for qemu-devel@nongnu.org; Sun, 28 Jan 2018 18:16:11 -0500 Received: by mail-pf0-x241.google.com with SMTP id 23so3261869pfp.3 for <qemu-devel@nongnu.org>; Sun, 28 Jan 2018 15:16:11 -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=8xzSBqTDqbAsaks2scycjrLsfLpa0BF7CTKM2I7mUds=; b=RhwczZguJCI+3FBbL4uuYWwO7PtPgvZvuEs/wAoGIRgDb/lzXBUPHE4idp0pZ94y40 GzANkI2Cca8X6SMGG20oN3fVHh941YXjtC6O8HDRwiDtqze1KeFgoJ5HLl097aESBCk8 TGO8xvXaC2OFPIHqIUbo0Z2rFoBNDGedMf8lA= 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=8xzSBqTDqbAsaks2scycjrLsfLpa0BF7CTKM2I7mUds=; b=qMuhvvFn1LASHwnFWJEXOdNukriEatmrOcrTMFhoGkhrx0DUrEw6nucHUosXORFKU6 q3RsIvWmsm2uktvKb/mMUKvN80kowFpRH75OtV2pqvg0N7xORQE8PX7ptja4PKfpatS9 OZoZFnhDToVlNWjSXZYY6AGuW2+1T+jV34Rbher0J6ze48SAqXRkqoSQiJXawk69JXAm HsgFXZC3SfmNorcV+eSYIddlwWPJ/U45jFwu7Edz9uuNC2SKKaZdMRp+i+Tki7IssuLo bpif/C8T1Ylij1jFi0KyYp+VtNflby45zGdSncAdAnwp4YWPe3lp92P1SA7dHu3DVZmf KgHA== X-Gm-Message-State: AKwxytfnsbqKiA1ozs0ZnbLZhVtU0iL6YJMnOWdq5dn5lGtlC/4aEswR GFt0e6Sx3C5q+AwbJRccqyJvQPL9pV4= X-Received: by 10.98.155.8 with SMTP id r8mr24785349pfd.94.1517181369912; Sun, 28 Jan 2018 15:16:09 -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 r27sm26949344pfj.75.2018.01.28.15.16.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jan 2018 15:16:08 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Sun, 28 Jan 2018 15:15:10 -0800 Message-Id: <20180128231528.22719-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180128231528.22719-1-richard.henderson@linaro.org> References: <20180128231528.22719-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::241 Subject: [Qemu-devel] [PULL v4 25/43] 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
hppa-softmmu
|
expand
|
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, 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[] = { @@ -2490,6 +2509,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