Message ID | 20230709135945.250311-18-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | ce9f5b371ddd82b51569a2c24216501182caaadf |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp4740317wrs; Sun, 9 Jul 2023 07:01:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUpkqfU1r8SvSsm5c03me/uGc3YKFvTJ1Bb1TnxyXbZH7ytwR+Oq+gYXTZKzZLfIseZnnD X-Received: by 2002:ac8:7d91:0:b0:403:9c78:b90c with SMTP id c17-20020ac87d91000000b004039c78b90cmr6511830qtd.56.1688911270726; Sun, 09 Jul 2023 07:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911270; cv=none; d=google.com; s=arc-20160816; b=lS49WrHWsmJRwcc1mKOVWeFYvL6qmbxguWM3Krpt8w63JmspqTEpvoVxifgavObAXB t591n0S1/g917NCsK8N6DF7w+11kvoMWL2gHrQ5fhS6LTXZ394+HGaNHX4W74tJR6o1s oedFMLwFsSE2xIjEDjpDxBaiNRtrg2MOmNkaD6mcZHqJ61HODuWlbqE23n5NADi3IIpB 0YHIXVvSXFujT6GLry8epNXmK/7+86N8VVtFvN5acC69YsAga+MFWZ1aU+J537JkbHmv jK8OIh7m++FGOOGHUejV8acRcBiHK4wcMmIH6ISkiOjTvnvzL2lgxR1Er9qLZBhDOuyf 1dmw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+Cz1+kZjkC5u47gB2bogcl1IkIjVlfgBFhqhPCwU85Y=; fh=3qdrlAICycY7VgU0cI4E0duimIwv/aNBV7oZD6cPLQA=; b=jPlwrwoG82okkHq9rZLtWFSpuTKz9C39UGlibi0Q9/VRZVNCNDZ30BuRdR1zf1pm+v S+KCxs6DltxG7o08q0Yo+gMlGTnMmQUIOZk/qeC6pIc3QQlLXCtpr5oFxOpoKoMPx/Ay aHxUSVaFumJmPElqE/S6+fcA3e8ghfST2D0aro5IbpjxdhS77LLxbaRr3NH3ZySTKi4X fbqs/b35Mln6Vry+79aPDl4tJJwWvzwaVRutFyaXHdaeOhQCqaWWpeVTY1BE1Fe1RSOY kswkY2gyBQySijG8tRouPxSsh/ghjNAI221m4JDll2tEkXksOqx+q+BKc/rg4ErnOTi8 5a5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ipXBaAA0; 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=pass (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 y17-20020a05622a121100b00403a448056asi1424042qtx.401.2023.07.09.07.01.10 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jul 2023 07:01:10 -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=pass header.i=@linaro.org header.s=google header.b=ipXBaAA0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qIUxl-0000h3-8I; Sun, 09 Jul 2023 10:00:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) 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 1qIUxJ-0000ON-Hw for qemu-devel@nongnu.org; Sun, 09 Jul 2023 10:00:07 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) 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 1qIUxH-0000PP-Hs for qemu-devel@nongnu.org; Sun, 09 Jul 2023 10:00:05 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-313e742a787so2710322f8f.1 for <qemu-devel@nongnu.org>; Sun, 09 Jul 2023 07:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688911202; x=1691503202; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Cz1+kZjkC5u47gB2bogcl1IkIjVlfgBFhqhPCwU85Y=; b=ipXBaAA0216lsicNBvbsgtSTiPcTReEhGWDokJKpWpR7V2hYxxlkQS0kIcCwl/O4Xf 42LHz7CcHpRKWUq6nOhsVdEqjhhqdWSZuLV41QBXucINQ0ZLtoWWiC/FRgkGqXs2fsqx dDggWlOpz6eIpbpEYXPOf6NNLldJBu8G4TSRYTvb2yylgnPagyNEtR0liECBTJfuxlCL 5r5Ek+iN6fUhGyVNCNQmyNYXsMpSKZyOr0TDrqop6DR19hhJLvkfMFjTDuIQ1hl0/zrX rPGg2wCS3x+zMWIIA/+edioKDLDcvH1HsdAwg21apRSC5tXDrsP50mIpuuZ8oXUbDLz0 vSQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688911202; x=1691503202; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Cz1+kZjkC5u47gB2bogcl1IkIjVlfgBFhqhPCwU85Y=; b=M6ayQ5GNzp2n1Ks3deX8gYkSbJwggpiHWNYEVcQBnR1AXD3FA5J3BzuoFtWy1AJfWt HGfsbNMh/9Kl+KzO9pG6eLwdaXqYTKpQ4kYYprOKZTftjgpITd+Ip9E32i+etJ1UxD5P FXTQPQdY/iaZsGEfIWSiTFk8zzNWQ9eibFGP7+XogDpKbTjxS+Dygllh7a8f5U12mDQj 7o7ga+lZq6KTqGnbo4ahuXAq8TuCoY5zNxglB0C7tdpY2Y2d++dwjHzpCnWocBo0p0Qt 4BjShILOEyEFZH2rzyu9XkGrwQ4jzeVxUnSYtfga2k9tzYTAdPaWQj+G1uB7Oz6i/4mV nD8A== X-Gm-Message-State: ABy/qLYrJPU9J7b8br1/xY8wQu8cVTUqKWF9BeYcZAVSYdPK1UqNELZJ ZxdSrplQa8rWT77MIgrSEeFK97p3/zh3Nmpvb3xFdw== X-Received: by 2002:a5d:490a:0:b0:314:323b:9d3b with SMTP id x10-20020a5d490a000000b00314323b9d3bmr12558993wrq.32.1688911201832; Sun, 09 Jul 2023 07:00:01 -0700 (PDT) Received: from stoup.. ([148.252.133.210]) by smtp.gmail.com with ESMTPSA id v18-20020a5d6792000000b003063a92bbf5sm9239422wru.70.2023.07.09.07.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jul 2023 07:00:01 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Daniel Henrique Barboza <danielhb413@gmail.com> Subject: [PULL 17/37] target/ppc: Use aesenc_SB_SR_MC_AK Date: Sun, 9 Jul 2023 14:59:25 +0100 Message-Id: <20230709135945.250311-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230709135945.250311-1-richard.henderson@linaro.org> References: <20230709135945.250311-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x435.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/37] util: Add cpuinfo-ppc.c
|
expand
|
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 15f07fca2b..1e477924b7 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -2933,17 +2933,11 @@ void helper_vsbox(ppc_avr_t *r, ppc_avr_t *a) void helper_vcipher(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) { - ppc_avr_t result; - int i; + AESState *ad = (AESState *)r; + AESState *st = (AESState *)a; + AESState *rk = (AESState *)b; - VECTOR_FOR_INORDER_I(i, u32) { - result.VsrW(i) = b->VsrW(i) ^ - (AES_Te0[a->VsrB(AES_shifts[4 * i + 0])] ^ - AES_Te1[a->VsrB(AES_shifts[4 * i + 1])] ^ - AES_Te2[a->VsrB(AES_shifts[4 * i + 2])] ^ - AES_Te3[a->VsrB(AES_shifts[4 * i + 3])]); - } - *r = result; + aesenc_SB_SR_MC_AK(ad, st, rk, true); } void helper_vcipherlast(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)