From nobody Mon Nov 25 11:37:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1715759668; cv=none; d=zohomail.com; s=zohoarc; b=VWBzvwh4OG6faKdEDSZ1oddYTq0njY1YBJrkoE02/hHdhRlpRMvrYxFUnaA+Hfi/+poSaZPtoaYaaDovOPqx1Gs2ZfBLafx8xvcFcFZnmQhFa/+tiNyE2Iv0jN6Cm+3WvOpxQbtkU9nrWMTPJy8haoX+Di3K0IWrsd8GtgXAfWk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1715759668; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Z538Yc8eAgdGOVrA7CuXrxetPsi8c98l/ZVNOYY/ekc=; b=JjFfUWHLcobuP4kUIVan7/mYVWqNxrOEqIcageu9kxOtpVF/jIAkFJQCJxBUwGUyk7EbTgoAartYTUq7Tk3eGQfKRr3jHqWG6IvYcupziHjqV0d/frD1AvXsSiRaY0cPZyds8rcPdEtV/k3lOt92DDeRSvhJkcA7ll4d/v3LYZ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17157596680871009.4090184004637; Wed, 15 May 2024 00:54:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s79Rc-00044k-Ad; Wed, 15 May 2024 03:53:00 -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 1s79RW-000416-IJ for qemu-devel@nongnu.org; Wed, 15 May 2024 03:52:54 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s79RU-0001Xg-Cv for qemu-devel@nongnu.org; Wed, 15 May 2024 03:52:53 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-420180b59b7so19010495e9.0 for ; Wed, 15 May 2024 00:52:51 -0700 (PDT) Received: from stoup.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9292sm222611855e9.37.2024.05.15.00.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715759570; x=1716364370; 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=Z538Yc8eAgdGOVrA7CuXrxetPsi8c98l/ZVNOYY/ekc=; b=rbIGEI0skirPterv4lC1c/VgpG+Stm1r7anoDncO/nrsE08PVyL3Sn3HR69kbTqtRW Vh7MN45bEk52eGXqtKBvvRAap0N4eaSaEXg7IXDZMbx3OZH5Uvrrv/tXxuZeH6xWdPvL v7GsJ/9zF/MA/SV6IROanLELuWnXmdXB0uPh4+iH8S08LbhjRCG1jWHhZwmIio308Nms bER55cGB9Mx3L0d3zr4c10kfFpbVwoxDFFK8xuSBFjQepPWmlnx33uGOFuxh00wRYscx Lncv/XafPQPSC13Ja1yrNPYEsAhUroJeaMCeFKMmNZ1nGLt1uiQTIRD6JgxXjGRCr/mE UIUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715759570; x=1716364370; 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=Z538Yc8eAgdGOVrA7CuXrxetPsi8c98l/ZVNOYY/ekc=; b=AQkH9PbLLSGetfGCOROJGdFfP4/VQ2PWIbJmFpV3ezHy5bsYy0YlYqgPrTd/nLCIsF pjOc+gJ7SRDbwhTTI7Yh+IFhF8Ex1YT3BlOLNsITJJmf40UdRlb/vFoOljdJoDUrP9TS CR1thv9y2fYuR6MVHHAdyvcfLRlgbgPgycZ81OgDIU67hRj8IiMqNq8cOdsgAnulDYi/ qt3yMKTAMJAnNzq+f3stMb6eozfowk3F7EhhGPT3XSQ+mmMaIj/Em1dvsgSZ+axe4qE5 IChDZV+Sa4E31FlWolCdLEC5K3jfkZR75nmvOJQyEqkW1SjPFGqkSl4/M5M57Lpl+hQA 2/Rg== X-Gm-Message-State: AOJu0YyKvJGAFqq8ODYcBlxAcLVHKpxYJsiBnMbaetOELZ5gvD74M1nr EUqjq9Jnv6V6jYdlKZjkibgmKTGIERfWpc508ZJh8ssoj2Nq6ozbyfDjTuCQ4Dc5NviVOe8ZTiZ n1gQ= X-Google-Smtp-Source: AGHT+IG1U6YTY8AVHQlYaO5GHa5ARMrKpCDIDiNT40r+epYIN7BXehIIWzWY1KmPeSNuGZxDZ/jV7Q== X-Received: by 2002:a05:600c:4752:b0:41b:fc7a:e7ee with SMTP id 5b1f17b1804b1-41fea539719mr111013675e9.0.1715759570310; Wed, 15 May 2024 00:52:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 03/34] accel/tcg: Pass DisasContextBase to translator_fake_ldb Date: Wed, 15 May 2024 09:52:16 +0200 Message-Id: <20240515075247.68024-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515075247.68024-1-richard.henderson@linaro.org> References: <20240515075247.68024-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x332.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1715759668792100001 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- include/exec/translator.h | 5 +++-- accel/tcg/translator.c | 2 +- target/s390x/tcg/translate.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/exec/translator.h b/include/exec/translator.h index 212362f5a0..348985c3a3 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -222,15 +222,16 @@ translator_ldq_swap(CPUArchState *env, DisasContextBa= se *db, =20 /** * translator_fake_ldb - fake instruction load - * @insn8: byte of instruction + * @db: Disassembly context * @pc: program counter of instruction + * @insn8: byte of instruction * * This is a special case helper used where the instruction we are * about to translate comes from somewhere else (e.g. being * re-synthesised for s390x "ex"). It ensures we update other areas of * the translator with details of the executed instruction. */ -void translator_fake_ldb(uint8_t insn8, vaddr pc); +void translator_fake_ldb(DisasContextBase *db, vaddr pc, uint8_t insn8); =20 #ifdef COMPILING_PER_TARGET /* diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 53225290b1..3456455fa5 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -375,7 +375,7 @@ uint64_t translator_ldq(CPUArchState *env, DisasContext= Base *db, vaddr pc) return ret; } =20 -void translator_fake_ldb(uint8_t insn8, vaddr pc) +void translator_fake_ldb(DisasContextBase *db, vaddr pc, uint8_t insn8) { plugin_insn_append(pc, &insn8, sizeof(insn8)); } diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 90a74ee795..6d7f6e7064 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -6203,7 +6203,7 @@ static const DisasInsn *extract_insn(CPUS390XState *e= nv, DisasContext *s) /* Register insn bytes with translator so plugins work. */ for (int i =3D 0; i < ilen; i++) { uint8_t byte =3D extract64(insn, 56 - (i * 8), 8); - translator_fake_ldb(byte, pc + i); + translator_fake_ldb(&s->base, pc + i, byte); } op =3D insn >> 56; } else { --=20 2.34.1