From patchwork Fri Oct 20 20:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 736318 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp502607wrl; Fri, 20 Oct 2023 13:50:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwZiHN5DBNN3keuE+HqF4gPlgHS85f7ZYuG2A5urAIND5sftmxtyqDYfzQiRY/mQ2aKnuc X-Received: by 2002:a54:4787:0:b0:3a7:1d15:28fe with SMTP id o7-20020a544787000000b003a71d1528femr2665615oic.56.1697835020685; Fri, 20 Oct 2023 13:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697835020; cv=none; d=google.com; s=arc-20160816; b=S07LvAo36DRgXHK6ToPs29bmOuIEl39oWimxDVTWbBKmeqvfPqU0Tx3UgqrOCdmeAe SATU5icYmFgtcEaN72+lRcA6ifUMuVJtXuEpQ16+RT11clLTqDH/uMFzXSGfiN9Guyxu LjARYvQwA+sQt3FfL/tTBPAk9cD+ja98Nv/vnwbFdE+LW1A8E9Cw/YPcbcfKWtx3edV/ K2drwxmRw6MfaP+uFYXjcc749Hcv7KYZSs2hCnROqErEypnxgCFsHYqPAtgqqOFUAN/R koVOrhLLd2SdvQ9kvaza0tSkhsVbW6wRiNwKMcsvSy9YgSNrpxrlxI0E3Ow7je0L2ILT GPEA== 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=vblR9i+m14sVOY03KrOJimUiWRKcg8IN+vUxURUwc5s=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=G0EUC/RcUQt3Nqtl7yUrQTe/ozbAIi/b/6bDOzFcB2rAOh9jfDJh7DUlqhtJHXlrkz q8p45nUx2NR4vWVvBchxgf2BM3mPZyru54wECIx0abGafi2fuDZmkJlHhnVOLaB1q7fT er7hVimmhlG0q2LU4AwljH/fIwTGc1zRLIYBlkxPI3L4evcMSRp15Eq+oQ4gN+8BnKqS oGSuZ+Xj0dTrPLy7YPhW0Ddnk2DzMSwbA13bNeNyX4MZbe55QVCHz85TxXRvHj2lyHPU evx0BP4nLXHvYuGr15zZMdjUtkVrYXf409gMh1hYstSfy78FdU93cXTFKjqL5TdpO8XZ Ym5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UyHlBw9s; 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 bo2-20020a05621414a200b0064c84ce3e14si1964585qvb.72.2023.10.20.13.50.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 13:50:20 -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=UyHlBw9s; 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 1qtwM5-0007yx-7y; Fri, 20 Oct 2023 16:44:25 -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 ) id 1qtwLq-0007ou-Rh for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:10 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwLp-0008HI-3G for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:44:10 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6b87c1edfd5so1107497b3a.1 for ; Fri, 20 Oct 2023 13:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834648; x=1698439448; darn=nongnu.org; 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=vblR9i+m14sVOY03KrOJimUiWRKcg8IN+vUxURUwc5s=; b=UyHlBw9sukJKn0PECtYQKmJsZxbzA7CSJ2Xj1W47PUJZY52FFuvSV9AAdUqf8/vW4F ksYoMLgI2L2GlL53TVR+egfCurCbLxFX2Xs24DZTmGymyn5msdyCZjW53QKU0HdnYu60 fORxE25na+fNywPhnt389G2Mgd3e34+oinAp585SxzUSdXnvnZixRYJM0CvDClTSOewo A3wKJ/EzxLc58BfCx1PlCJFYMKsTI07T9AdVsLuuz2WUfQwYvlwiyl7HwuJPo5vh/aWY 7Jj9Fax/dSLLR09pZz0tmK/BTf24htv3s+UhckKVAUONee6A9gE1dFVhzfPwMqizDovv 6xrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834648; x=1698439448; 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=vblR9i+m14sVOY03KrOJimUiWRKcg8IN+vUxURUwc5s=; b=d0TYmR+ex1BT5zzhzZsci3gGyqBG5JUneYTkTLoG7t7MKQq7SJlsxFsY3OQLuDacHd wCEtlLo0jVjr0Ww4CxKtjYshXOgHIF7EtjQajeZJ/x1s3BfYewwbRZ6eW+wEtboVRmLJ cC+7Mq2z0o4D+vxgg3Q+Rq2PeTDN6KtNLmrRdZA7Ijju9gA2SEpDLAUIQSl6pVKBLDJe g3oelhEofrnAzW77TFT9V0tQMtkEyBxn2uzNjtsVhZ+8lG4stydkcFnO1o/iw1evFC6q qhJGxO4ouikz2EcFFxGRDtxRSRjW0y/+bIdG3tOjiXZr79hxFsiQ10ug/rWDeCPu08Gd 6y5w== X-Gm-Message-State: AOJu0YyYS3wGB8bZKZhr3nE4CnBMKJtu2gnex0HWhVQVhnhxYaandOVu e49iIfUSM0gQx7bQfQDVm3k+SjnqhR9o6GAw2Go= X-Received: by 2002:a05:6a00:2395:b0:6bd:9588:bd67 with SMTP id f21-20020a056a00239500b006bd9588bd67mr3114578pfc.24.1697834647868; Fri, 20 Oct 2023 13:44:07 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id k15-20020aa7998f000000b00688965c5227sm1944975pfh.120.2023.10.20.13.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:44:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 39/65] target/hppa: Implement LDD, LDCD, LDDA, STD, STDA Date: Fri, 20 Oct 2023 13:43:05 -0700 Message-Id: <20231020204331.139847-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020204331.139847-1-richard.henderson@linaro.org> References: <20231020204331.139847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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 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 21f2819d12..da1dd7d74a 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2951,6 +2951,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) {