Message ID | 20180124232625.30105-26-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp737013ljf; Wed, 24 Jan 2018 15:41:13 -0800 (PST) X-Google-Smtp-Source: AH8x225AGHKr4s51OaqL/Rdeebg5nespvkaWQO8FKr8f8KTpH1aC50YtdqDF/CsjVWm0SkSLtn0b X-Received: by 10.37.223.202 with SMTP id w193mr6697608ybg.68.1516837273718; Wed, 24 Jan 2018 15:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516837273; cv=none; d=google.com; s=arc-20160816; b=mfZDLPaE4AVxdUS3DL/rvO/M/vaqQGofimJEqQmfwsG6Nmndyc8ZkeRcQBwu0b+MO+ fQ5Kdptgx22ytIUFOPyVchfAiPe25Ks3Qqc17BbBxAdGTT/LxBShQDkCrVYRhSrmMDCH TW/v+sKv67xnun1pp9G0u5vjytxeyNkJ5oJ98GhPcnDRW9fAbxosOOFJZFf405953Ji4 DUCPwqIAXgvQYCQRtu5Kkz+ZwpOaVozowqKwOMyfY1rvDDg8e5m4gYq7e+wZ8Tm3BL1B R58C9y2c/GIqleMNkIPNmInlvwJA6YX9j11IbQQgKBvrA5P2dGJ2v9JSq4cvzVLthaEp 3J0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=FN5eVR0j1v8pZT6x3r2FHyXcWKA/80tJ0rRu4iVNLQhf7tMYk6MI0ERuw+RzYOmxP8 9eVvvzhldg5lYm8ymmALf0aTMtjT4S3YGkeUt/E7Pxg1DH5JF/ndCkZm1gLLUJfNrP6o yyzJBk2lLySozaDTW01UOXowBcNuMQschHZmKUtAYYLW9P6Ic/+v+b6RdcLpfI+9qP0R G7tgCvHW/PW5+7c0+m3IhMETq+VWwU/QzK0wOjOX3qtFcoy3yKo+PyZ21cUTxN7CjU4j VIB94TuIokUhBNG3IlJHct7KsxydHpF0OJujCtXpG3tmhkoWqou0DHrm3goSCgAUHMZu /Uxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FJEllaNA; 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 t92si3023384ybi.251.2018.01.24.15.41.13 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Jan 2018 15:41:13 -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=FJEllaNA; 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]:54533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eeUfJ-0006dB-27 for patch@linaro.org; Wed, 24 Jan 2018 18:41:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) 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 <richard.henderson@linaro.org>) 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 <richard.henderson@linaro.org>) 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 <qemu-devel@nongnu.org>; Wed, 24 Jan 2018 15:27:07 -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-Received: by 10.99.160.88 with SMTP id u24mr11811479pgn.122.1516836426718; Wed, 24 Jan 2018 15:27:06 -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 <qemu-devel@nongnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 15:27:05 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> 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: <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> 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