From patchwork Sat Feb 17 18:23:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 128720 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1843269ljc; Sat, 17 Feb 2018 11:07:41 -0800 (PST) X-Google-Smtp-Source: AH8x225I5Kno6M3iGF2mAQIEdZYeD5SUNlTv6QqFM6YEsrpxuF/EyCWSyS6hS0A7584NsF7Az7bs X-Received: by 10.13.254.7 with SMTP id o7mr7598552ywf.12.1518894461317; Sat, 17 Feb 2018 11:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518894461; cv=none; d=google.com; s=arc-20160816; b=hqRFjjdakG5yiXolx8NNALJc2tqScxkyrfX3gjV9rKpIIWeLWALlhFwV5qBy6UJxW1 pDpWIk7E4rW8VXHhciY9j8qxRYQmfQM2dM/2BKtmSTI8P4j7lT3tnpUk8MEuGzxOclRd QH5/GjeB+C26eBpEPhFe1egKjhxBPLD1PzrFhq1ee1RW77B6oDZctjv1IcAjsPunyLmr mvtJmyiebzdakfTsMkA+4FkNwoUlsE+WBGQUYGVwAcpfzqjv58p9z2oSZz1G2lsH0g60 zPOWthpVK2VzZrjxjtAHoRQZ/7eF87ffrdTLpBIst2KrceuJY+6NZIJyHi6k98b8J2eY uPDA== 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=d4HbPykktVYLS4tE1HcEFAw5Qf7NVL1FMMy69rPPEE0=; b=kvxgb+NvMMtT8L8dpu6fF0kVJRKCVZAb5cYS6jpBb5/KAN23yHz8Z5uXq8DBJ8ZuEM +5xUrFmU+gVnmN/GrW4rKOxzYTkJ6p44+PfCqbYZ7UEFdBrHIdzI1MSmBLA9b4TjNsBO Kq3tZmFnRIYJW4L3mxjWTzZ6KlxzhaGf3we+5yaDOzn6kIFFTcOzPuwgTnXffZdnCrSC gg0Uj+0sgs3lDBkF2vr4sIszrWPnm2dFUWjySCQBT6l6LXcK76J+p9em2TJQerkVAeNu NxpCGlVqXU+C9F67G1reyE+MJSdKQIi7Jb0tgZj0jgyi3rAXR/uWpmUtuXewRmLI+D+o 08KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TnhRGHO5; 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: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g131si978958ywc.694.2018.02.17.11.07.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 17 Feb 2018 11:07:41 -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=TnhRGHO5; 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]:48426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en7pk-0002st-Kw for patch@linaro.org; Sat, 17 Feb 2018 14:07:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en7AM-0001cr-H0 for qemu-devel@nongnu.org; Sat, 17 Feb 2018 13:24:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en7AL-0002Au-EB for qemu-devel@nongnu.org; Sat, 17 Feb 2018 13:24:54 -0500 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:40423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1en7AL-0002Ad-8u for qemu-devel@nongnu.org; Sat, 17 Feb 2018 13:24:53 -0500 Received: by mail-pl0-x244.google.com with SMTP id g18so3435893plo.7 for ; Sat, 17 Feb 2018 10:24:53 -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=d4HbPykktVYLS4tE1HcEFAw5Qf7NVL1FMMy69rPPEE0=; b=TnhRGHO515AMY9RNZj7jrkToPGL9H070saLqxSGas1cvhg9KJ0QIZanFDGXLYt+Fdy EmkG7fi6omiG23Z9YmNoQjC37e3FKDhsv/3vkN4wukDIslXiJiq7G3iCtCIFYpgEfyKc cxJlStYyhnzD8FTiT0cA5FeNKVeOMGDJy0lLc= 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=d4HbPykktVYLS4tE1HcEFAw5Qf7NVL1FMMy69rPPEE0=; b=HL9r2fIKIL42/J3UW2Ya8ddL/OFbJ1Sb9M2D9cYYU/q44Qteb21mygNIY+ri3b/E+T d+PPbF6F3664f75EfyM4A40NUh7kITz0kcTpRZP/u+ZFlB5snoFG4DO4qaTw2Y15KOuI q3mINQbrdrvz+HDRzMAsHATRvbnRts4ZUT/3KvZHULnfAV3ctMjdywCGWF8BfEoThS7t /0Dgr9S+PZOkAd7CfJ/JiH9GsJwcNY+Z1BwpbBbF9LHR7i6c60ORjE8MvtTPN++bLbMf bwV8X9znlA5ceQlYDJx3GdOWMU4J4a71hBSfWC/Nr1b05vaIReWYFiDqkTyznHuNZp1x 5KWw== X-Gm-Message-State: APf1xPDNRqsIQLKl1jKe68g6TGW/6H5EVmtMhf+K/wNcwxT3yTK69Li8 St7RBbGNR5i3gdYb+ngG8SoHmL3hXjI= X-Received: by 2002:a17:902:ab85:: with SMTP id f5-v6mr9594980plr.199.1518891892033; Sat, 17 Feb 2018 10:24:52 -0800 (PST) Received: from cloudburst.twiddle.net ([50.0.192.64]) by smtp.gmail.com with ESMTPSA id h15sm13466712pfi.56.2018.02.17.10.24.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Feb 2018 10:24:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 17 Feb 2018 10:23:10 -0800 Message-Id: <20180217182323.25885-55-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180217182323.25885-1-richard.henderson@linaro.org> References: <20180217182323.25885-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:c01::244 Subject: [Qemu-devel] [PATCH v2 54/67] target/arm: Implement SVE prefetches 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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 9 +++++++++ target/arm/sve.decode | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) -- 2.14.3 diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index ca49b94924..63c7a0e8d8 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -3958,3 +3958,12 @@ static void trans_ST1_zprz(DisasContext *s, arg_ST1_zprz *a, uint32_t insn) do_mem_zpz(s, a->rd, a->pg, a->rm, a->scale * a->msz, cpu_reg_sp(s, a->rn), fn); } + +/* + * Prefetches + */ + +static void trans_PRF(DisasContext *s, arg_PRF *a, uint32_t insn) +{ + /* Prefetch is a nop within QEMU. */ +} diff --git a/target/arm/sve.decode b/target/arm/sve.decode index edd9340c02..f0144aa2d0 100644 --- a/target/arm/sve.decode +++ b/target/arm/sve.decode @@ -801,6 +801,29 @@ LD1RQ_zprr 1010010 .. 00 ..... 000 ... ..... ..... \ LD1RQ_zpri 1010010 .. 00 0.... 001 ... ..... ..... \ @rpri_load_msz nreg=0 +# SVE 32-bit gather prefetch (scalar plus 32-bit scaled offsets) +PRF 1000010 00 -1 ----- 0-- --- ----- 0 ---- + +# SVE 32-bit gather prefetch (vector plus immediate) +PRF 1000010 -- 00 ----- 111 --- ----- 0 ---- + +# SVE contiguous prefetch (scalar plus immediate) +PRF 1000010 11 1- ----- 0-- --- ----- 0 ---- + +# SVE contiguous prefetch (scalar plus scalar) +PRF 1000010 -- 00 ----- 110 --- ----- 0 ---- + +### SVE Memory 64-bit Gather Group + +# SVE 64-bit gather prefetch (scalar plus 64-bit scaled offsets) +PRF 1100010 00 11 ----- 1-- --- ----- 0 ---- + +# SVE 64-bit gather prefetch (scalar plus unpacked 32-bit scaled offsets) +PRF 1100010 00 -1 ----- 0-- --- ----- 0 ---- + +# SVE 64-bit gather prefetch (vector plus immediate) +PRF 1100010 -- 00 ----- 111 --- ----- 0 ---- + ### SVE Memory Store Group # SVE store predicate register