Message ID | 20200626033144.790098-13-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp106993ilg; Thu, 25 Jun 2020 20:41:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4dyaLvFzcpvAH0mwnD6DY7/LHKaN74w5Swm1enVb21fAGjPWsGhM7UgoGcbv6Adm1w38J X-Received: by 2002:a25:1e07:: with SMTP id e7mr1823283ybe.21.1593142892814; Thu, 25 Jun 2020 20:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593142892; cv=none; d=google.com; s=arc-20160816; b=rH7GmnxFWmIRSGphIl1oytf+pAWXwZHoA7H2fdSn0woqEESWmEf4c/T1cYa1NFckef 801sIIhWWZRGTgeDUzwObAmaG2VIPpSuXPR2USoBz9m6omMITtXEWWa1AZbZVI0kHNrE K/EL378Bew5hqPsH/YgnRXT1U/uXclPIC3KAcwR1x+7tE4BvHUY3hsjJu/HtozT8CR4r BgZ7vvzH15YpfMDeyRTFi00H4bdiu6Zj29DSwFI4+U+aCozec3I6JdZsxty7ik3UFVvV Cb/YV1fXDWYXZPC87AB/id+1SS/KoNtRYooc8PWEOmAeazuveu3SGSz986QH3irGJOxx Hofg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=6v/qRXRyfIYhGyb3e1JHgjhX613ps7MlxvVRRfe3ZMk=; b=tmjjH8dJK8Pzl97rw6AquE6+N4pfaN1F6F0kq3BvygaljSmF5Ai33uadHSApV36Us5 Enaci/Sjreq9OgMihKbJJhRRG0xW3NH+3QswPsVa49BsYglGbEGUWgjXUzq0irvfBvr/ QW2byhnQwt67dQjjzMhFxTnYWDvXsFSKmWgjIVD+HL6t2j5z0fmY4ij+FJjTEehdpmLH cdHtY8c6BRvccKiwEC6yPT6eRJ4D2DBSa+izW+GyVXsXNElb5ySenr0l4Ws/lKxqjHss xdbo8gK5333wPkyEmElUJLfXRczwaBvaOUXsGPgW1UoCNtlziTzqzaQ9Pk+s1WJ+N+L3 ch1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=H36lrNaY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id 144si22807622ybc.71.2020.06.25.20.41.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jun 2020 20:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=H36lrNaY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:35472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1jofF6-0007Zy-6n for patch@linaro.org; Thu, 25 Jun 2020 23:41:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1jof5y-0008Ds-Im for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:32:06 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:44935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1jof5w-0001p2-67 for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:32:06 -0400 Received: by mail-pl1-x644.google.com with SMTP id bh7so3744076plb.11 for <qemu-devel@nongnu.org>; Thu, 25 Jun 2020 20:32:03 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=6v/qRXRyfIYhGyb3e1JHgjhX613ps7MlxvVRRfe3ZMk=; b=H36lrNaYx9Q+qHL+r01PBHtgMG8XDrT7cZiQE5+ue2u9YhOoMMA+2MurqoMMB2EPWf OdHxMs5WzX3u7M0lfj4XImqNWdfPZE+ZXLfwZWa5/ScdqB8Qk36Iw6cxuOgzeexwVoQ+ +uGqKRKNe/4rPoj/LAaQz+qdgGsdXW3arcV5ZJTcJMVVo9cRdHoPhg31Dvxon/q/CvH8 WkZiCTLCjlW23EGreV2ihia2XCtxkiRdsFfB7oasFKywlSZvPPU0jhIwpbqCYdZDvJku A1K4Qv8nrutMjh6+iiyKvgJ+JKHwvqTqei6a9oAX/4it2w7QkITGknz5yrP+22leVxQ9 BrdQ== 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:mime-version:content-transfer-encoding; bh=6v/qRXRyfIYhGyb3e1JHgjhX613ps7MlxvVRRfe3ZMk=; b=MJv2agWv4E4UtqK1q5zpthXbbpwA4zcWt22zE2TRp6JHzPL7BsVofvPLoVGUbRV2x/ EaFriKZuKgGGGXnTzR9CiB9XHb0EYFJDn0SyNCz53Q6Q60bPRIXnmGQyIHHTvd7OOjiZ qtfcwPG30Dw6KXLG33FvHKalIy2jnOkLwcA930AqluvRsgDiXAk84xq9wpfZEu7w8Tnt XVDflZaZGrb3lK0KYGhca02PdwmtCv0B0xbPll3opCmwSYZuD0CcxJ0Tmo7xW/SkKJFK w7WrgixOF1RdBqDqA2aU1liH6Y2OGyAcMaPsipuMOauQKb4EZtaBuLcKVjPnDQ0kqklz vTUA== X-Gm-Message-State: AOAM533Jw4iWVdpnm7/OtWWQO6CLqKfb6wwl+qMzmF4wGfjOrzF/ZQqA IjJtjBsW+PKOTcZrqmpzd+3PAZE5BYg= X-Received: by 2002:a17:90b:358e:: with SMTP id mm14mr1273118pjb.54.1593142322584; Thu, 25 Jun 2020 20:32:02 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id y27sm1605256pgc.56.2020.06.25.20.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 20:32:01 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v9 12/46] target/arm: Implement the GMI instruction Date: Thu, 25 Jun 2020 20:31:10 -0700 Message-Id: <20200626033144.790098-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626033144.790098-1-richard.henderson@linaro.org> References: <20200626033144.790098-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::644; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x644.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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, qemu-arm@nongnu.org, david.spickett@linaro.org, steplong@quicinc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Implement ARMv8.5-MemTag, system mode
|
expand
|
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 2ec02c8a5f..ee9dfa8e43 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -5346,6 +5346,21 @@ static void disas_data_proc_2src(DisasContext *s, uint32_t insn) cpu_reg_sp(s, rn)); } break; + case 5: /* GMI */ + if (sf == 0 || !dc_isar_feature(aa64_mte_insn_reg, s)) { + goto do_unallocated; + } else { + TCGv_i64 t1 = tcg_const_i64(1); + TCGv_i64 t2 = tcg_temp_new_i64(); + + tcg_gen_extract_i64(t2, cpu_reg_sp(s, rn), 56, 4); + tcg_gen_shl_i64(t1, t1, t2); + tcg_gen_or_i64(cpu_reg(s, rd), cpu_reg(s, rm), t1); + + tcg_temp_free_i64(t1); + tcg_temp_free_i64(t2); + } + break; case 8: /* LSLV */ handle_shift_reg(s, A64_SHIFT_TYPE_LSL, sf, rm, rn, rd); break;