From patchwork Tue Nov 7 03:03:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741835 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1421782wrr; Mon, 6 Nov 2023 19:14:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzGErrzAWcx+O8vK0R4jvZsUY9drJFAgV6YvrPzmVXBcrPAOqtt3dra54KZvdNYifm+2Ou X-Received: by 2002:a05:6214:21e4:b0:64f:6199:a8e with SMTP id p4-20020a05621421e400b0064f61990a8emr29200447qvj.23.1699326867529; Mon, 06 Nov 2023 19:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699326867; cv=none; d=google.com; s=arc-20160816; b=o4m4TXnLFemPZkkpE9eRwNyhq1c14cxBl7CYhkmGSQtKyRtE5BjJbvidi0ksYcFXhN pJX2BtxbUexZhoHMXmxqwbcO5fwnUtgUcn5i4TsRC1YhjVpsTM/XTFpueov25S8F3xVb +r0yRm0ZBdqOIF5wp4NO8hL5/oi+A2PP903mWS/6jcH0KrnRQh/havTWxtl7XBP0tL/Q KokAUgt5JUVi1Ho7rIij7/ZYODEpuojMMbEFiCygMXUh8pQiNuD0iVEwu5WlVg0+sBkF slTL5BKEq+Z29IadLz9PtnWZ2rHWHBs6GV7CaCbFSbszkB0zlowdjAvjZFDqACtw02Mx EuXA== 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:to:from :dkim-signature; bh=zniar5iOVmkHT6sPS3/xZSKtl5AO6s48Oy/l+P1MmPo=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=mX0+uIoQETVRFXEl1esQxRYk5QfoU9w9eGYMKe1uEQtDL7WRUMxIxwkW4HDWAVMh6u nvN69GBnMcwqBA/1Cn5OhNmpIdgw3E6/JB1SWYoTPLX9ToZIxsohWGK795aHsSQPDS03 yFWMluRpFAd5lEzfjYoDXovZ0VpyqSwBfes1OLpi72Cbq3jWfWwLHTDpRmqVlCzuTqx2 mKsEyAHm1gHMesLqx0ppWPLvn4EY91IyyLDjfIGcyF/CPDkUB/54e8/qAY2qdLllfXH+ C6lDw+FR4UdXFq2Nwr0GKPdzvZhb85lxPESyQMg6MkFZOPtQv0LuvX/9s48tDzgFkpZR zwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZTwNJ6Oc; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f5-20020a056214164500b00647423dd0d0si6619462qvw.67.2023.11.06.19.14.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 19:14:27 -0800 (PST) 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=ZTwNJ6Oc; 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 ) id 1r0CRS-0004Cd-3K; Mon, 06 Nov 2023 22:07:50 -0500 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 ) id 1r0CRP-000486-HW for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:07:47 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0CRN-0001NA-BC for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:07:47 -0500 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-692c02adeefso4470914b3a.3 for ; Mon, 06 Nov 2023 19:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699326464; x=1699931264; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zniar5iOVmkHT6sPS3/xZSKtl5AO6s48Oy/l+P1MmPo=; b=ZTwNJ6Ocgz6gZXSx/r/K9e+nar2iFgw6SLDJdLbMkcnrnvhPgEmnpAz1PqYj1Lubls iU4hbTJgVPioHZjU6lfNRGdtyaEnH+N6ZxK3lrs/DyCHusHUXwBmAarRbYf1bmo9cLnl eUbo7UAjbMlNTFfzDA1WtSmESpAaO4eoDghhnfWJ381ZVgNa+mTORJaU6Om/iogOhw21 AbnIgGMbeT2J5BgSMZZXcKAeHP8sD2KE58uTQAiT5q/Brn3PcKN2HtP7Dby7Uig8hby1 204RBohVmkyfTshYBuVBbd4HeOLKuzOwkCK4LXccc6FTrKzWtjry8Pgt4Wz7y7v6M3XC LBow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699326464; x=1699931264; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zniar5iOVmkHT6sPS3/xZSKtl5AO6s48Oy/l+P1MmPo=; b=sJATDSRgynQdtDDastr/TDAEfi/7Tkch2KxQJu/j5xvboRjcl/8Djio6WOXobRGr8l W/J2rJFnJohWWlIrq965JJ4m5s5ZqzZqMGv3WDSRZ0pIQrbbLUtp8/mpoyDFuX8DU4Tl Wh60Bs8GFgUR/aQzp/oZTSDGNoNEnKdLDLySHLTdEloM1pecUvTi9nsGlMJH5potTXuO 3bWaiAJnWQtM8QZXgSZ7+PHQ5dFr04A2xSrbJ+uSpf4O5S7OWJv971Zx8JcSVLECvtS+ Wdw0de/CMZqCaf6Kz43nMjEQcL1PuQwgG3QchaaoQlOtIwLeQA7Nwl5WBrh61sbjxZeH z1jA== X-Gm-Message-State: AOJu0YyzCg9SvxH4vLmHdHFpXqLSMEBIpGHfe/WD4RqQuifJokEEwFC2 CmjKZAFRXPLgv6w87piQ+2wrsznuiCNUcao9ICg= X-Received: by 2002:a05:6a21:4986:b0:182:1c26:e023 with SMTP id ax6-20020a056a21498600b001821c26e023mr9480840pzc.60.1699326463768; Mon, 06 Nov 2023 19:07:43 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 13-20020a17090a004d00b0027782f611d1sm6744883pjb.36.2023.11.06.19.07.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:07:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 47/85] target/hppa: Implement LDD, LDCD, LDDA, STD, STDA Date: Mon, 6 Nov 2023 19:03:29 -0800 Message-Id: <20231107030407.8979-48-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107030407.8979-1-richard.henderson@linaro.org> References: <20231107030407.8979-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson --- target/hppa/insns.decode | 15 +++++++++++---- target/hppa/translate.c | 4 ++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/target/hppa/insns.decode b/target/hppa/insns.decode index 48f09c9b06..33eec3f4c3 100644 --- a/target/hppa/insns.decode +++ b/target/hppa/insns.decode @@ -215,9 +215,14 @@ ld 000011 ..... ..... .. . 0 -- 00 size:2 ...... @ldstx st 000011 ..... ..... .. . 1 -- 10 size:2 ...... @stim5 ldc 000011 ..... ..... .. . 1 -- 0111 ...... @ldim5 size=2 ldc 000011 ..... ..... .. . 0 -- 0111 ...... @ldstx size=2 +ldc 000011 ..... ..... .. . 1 -- 0101 ...... @ldim5 size=3 +ldc 000011 ..... ..... .. . 0 -- 0101 ...... @ldstx size=3 lda 000011 ..... ..... .. . 1 -- 0110 ...... @ldim5 size=2 lda 000011 ..... ..... .. . 0 -- 0110 ...... @ldstx size=2 +lda 000011 ..... ..... .. . 1 -- 0100 ...... @ldim5 size=3 +lda 000011 ..... ..... .. . 0 -- 0100 ...... @ldstx size=3 sta 000011 ..... ..... .. . 1 -- 1110 ...... @stim5 size=2 +sta 000011 ..... ..... .. . 1 -- 1111 ...... @stim5 size=3 stby 000011 b:5 r:5 sp:2 a:1 1 -- 1100 m:1 ..... disp=%im5_0 @fldstwx ...... b:5 x:5 sp:2 scale:1 ....... m:1 ..... \ @@ -244,6 +249,8 @@ fstd 001011 ..... ..... .. . 1 -- 100 0 . ..... @fldstdi # Offset Mem #### +@ldstim11 ...... b:5 t:5 sp:2 .............. \ + &ldst disp=%assemble_11a m=%ma2_to_m x=0 scale=0 size=3 @ldstim14 ...... b:5 t:5 sp:2 .............. \ &ldst disp=%lowsign_14 x=0 scale=0 m=0 @ldstim14m ...... b:5 t:5 sp:2 .............. \ @@ -275,11 +282,11 @@ fstw 011110 b:5 ..... sp:2 .............. \ fstw 011111 b:5 ..... sp:2 ...........0.. \ &ldst disp=%assemble_12a t=%rm64 m=0 x=0 scale=0 size=2 -fldd 010100 b:5 t:5 sp:2 .......... .. 1 . \ - &ldst disp=%assemble_11a m=%ma2_to_m x=0 scale=0 size=3 +ld 010100 ..... ..... .. ............0. @ldstim11 +fldd 010100 ..... ..... .. ............1. @ldstim11 -fstd 011100 b:5 t:5 sp:2 .......... .. 1 . \ - &ldst disp=%assemble_11a m=%ma2_to_m x=0 scale=0 size=3 +st 011100 ..... ..... .. ............0. @ldstim11 +fstd 011100 ..... ..... .. ............1. @ldstim11 #### # Floating-point Multiply Add diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1b4fa401ba..4562f865f4 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2972,6 +2972,10 @@ static bool trans_ldc(DisasContext *ctx, arg_ldst *a) TCGv_reg zero, dest, ofs; TCGv_tl addr; + if (unlikely(TARGET_REGISTER_BITS == 32 && a->size > MO_32)) { + return gen_illegal(ctx); + } + nullify_over(ctx); if (a->m) {