Message ID | 20250122093028.52416-8-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f78a:0:b0:385:e875:8a9e with SMTP id q10csp244722wrp; Wed, 22 Jan 2025 01:33:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVrKtkQYiFC3N6cU0CFZZxPENuO32ojFL4nSpSXQS0n8Be1VPwSydP7dAylnbtQVZ02C36o8Q==@linaro.org X-Google-Smtp-Source: AGHT+IFEnoIB3NcGuO+SOrXkp6rYU21uOsemzo06HiM6WzMeJncmSlbJEEEMKEBwlt9r+8HrQ1hr X-Received: by 2002:ac8:4993:0:b0:46e:2d0b:e1bf with SMTP id d75a77b69052e-46e2d0be43cmr156817411cf.11.1737538389847; Wed, 22 Jan 2025 01:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737538389; cv=none; d=google.com; s=arc-20240605; b=UP9vHTrdfYlApgjuVNzVPXwhci98jplYkK1qjNXY+EIaTmzonTc6IiC+mEBSNEBSfm 83eFx43DYLox8s4GTiiE+FMUxohGULs2TkzeerzsvBq8aLe6G7iJhAqXUJZE2tj9gy5n LMYuvKcIoAojv6WvRl5NlET1BoumygxPRvlKTuQmmg6QyKAW9O1eeth2FSlhYB0CZuFO qC2Eo3NTnxCneGGGVFVUUMVHbmnaUkpB5Bs5ixZO7iwGyg1c8E4H91sLaGcSb91Eoqpu iv9VrXh/rAWbtjea/K50pSsJVsdHjR8L+Td7pF58VnAQQz60aVD8e3gBLGjl3hqZRCwG NfWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=6euSBLv31aJZp9lvcImTSgTbDVlnwvaPYw0ieO+1v6o=; fh=Brec4ZYd5wGCfOwL/9Q1OxqxWlcx8jJnKse3UD0zpBM=; b=dmNLzu9Z4A+F0rCgR7ZLkb3M8YBdWOPVemeL+xaN0Vi1G/9UmNscxPm7YSksJZkE+h j651n6CIIDPFBnd9cNomPB60zHFiHdNmk8If1RgJAY7gmv+QI5DyIzn3poY41KFq9i1L dJXmLoFFz/lyzxFHf9wvzKRwq47pNXcIBXbQp1Eor7fmN2nxs+8N7A1qXWyuy0qjFxXG fy8aJYDAobA8MwckxkgTI6dlBENZfzOCBPSHUS2pq4g0ypESgY6+M3yXBVExBSc9BuyB y3vtaWmebzKn3tD38dLYmgmrNlh9nGeXOoRJ+b0QR23fVSHFTgyTVJJaGsoVSH7ji+lV tPew==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hWSPv+d2; 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; dara=neutral header.i=@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 af79cd13be357-7be614cbfe9si1458404185a.422.2025.01.22.01.33.09 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jan 2025 01:33:09 -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=hWSPv+d2; 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; dara=neutral header.i=@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 1taX4m-0001nG-G0; Wed, 22 Jan 2025 04:31:08 -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 <philmd@linaro.org>) id 1taX4j-0001i3-Ss for qemu-devel@nongnu.org; Wed, 22 Jan 2025 04:31:05 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1taX4i-0003In-Ex for qemu-devel@nongnu.org; Wed, 22 Jan 2025 04:31:05 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-437a92d7b96so65656175e9.2 for <qemu-devel@nongnu.org>; Wed, 22 Jan 2025 01:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737538263; x=1738143063; 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=6euSBLv31aJZp9lvcImTSgTbDVlnwvaPYw0ieO+1v6o=; b=hWSPv+d2k8JBdaQDMD92SKchTB/Zl+COaNKqvQH8EjdOTFL4ZG3ynU1CB93uf4z0Di yN+ajwby+91/ByvxiMjcUtJaP1z9fFtW4IxblQORd1HE0Qr2y9BfAgvPowfbUtJ6qdWK C/InLmQ7Nj5ALx75pWKueZnF2MhWbaHuYXkj5s7I92XwgyK3kaUsklQ/1rfMHhJJuMpu iOQ/ozsx6cucF+TDxYom93c2qf8IxoYdMnWjPF6CceDmpn85lRWYmBek580pYvIPA2tV JKO+I1onBLdG7lmYqla55CyeVOFHWDzRovO4l9pfN0T3zp601DkdWxwifaOpNZMjn2Q6 8o/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737538263; x=1738143063; 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=6euSBLv31aJZp9lvcImTSgTbDVlnwvaPYw0ieO+1v6o=; b=KQacXUbLk9k914IH04sX3nCX4Qb9yq+I1wVON1RbdPBgEId2RegxmsYQOIxQeG7P4A cElASIu68v+DNdi/EiZcMDdpnBHOF0aQRCGB5cdH+AE+/lueoNc87aZKW8BiuzmXAEsD GGXoKCQq4OFKfmuYN+9jS6jDqfGZwWMRgxfUfIDM7mLDki1wSxmPahSPfZFUKjE9JcDH KL2i+NxBC/MrVkOqDkGa8YbZsDhWglPC1rU0WJv3V3HZXNsXTPU/AYEOEtVnbwGOQMn9 ov8IQK6IeMi7JFr28kaHVRWDSV+Avfaz3kEZlDGyQUYSU52WB3xaNEgyEmkQn5gz1nsC h4Dg== X-Gm-Message-State: AOJu0Yxx88+0Hc0mSZe7E1iGLYcsmoqnIVl501YUWCgKfa9VLdUUMeq/ FLOJ37/QpWofVtqBcOt3X3916nxVedj+S6kAZCiIV+TNE0uNmqYSWlyHav93FRfN8HJjW00VAld N94U= X-Gm-Gg: ASbGncujOqa7VR0ZUI/1lPpgJv2nDwRsPooLILiwkwELGqJyKHCE7fWnDwwZ67/3wIm g+a31aFtsYiVJBjJ5rLd9UXIcySOu67J2Yik3wAC3sl8Zudeatz2QnSJBpGyUnHE4x6uUeU3KAi 0VS9uiCYi0km8HkJU6bf7HBMIDQTFHUD1DagKsf9CWpPK5xH4kGt/bp+KNmwcGMIm1NkrBfKCe2 DUiYxtuf2tOt5ykalFeBLIfu7PXUae/fgjTilmeDJduyK4jMMHxUQUh6sQGgzUk67n/oCBn5Znf sb/rZ3IafoFduQjfV6zhzL/4Jyeoyjr8s55HuTgC58DW X-Received: by 2002:a05:600c:3593:b0:431:5632:448b with SMTP id 5b1f17b1804b1-4389144eed4mr166904965e9.25.1737538262741; Wed, 22 Jan 2025 01:31:02 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438b31adbccsm17547875e9.19.2025.01.22.01.31.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 22 Jan 2025 01:31:02 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v2 07/10] disas: Prefer cached CpuClass over CPU_GET_CLASS() macro Date: Wed, 22 Jan 2025 10:30:25 +0100 Message-ID: <20250122093028.52416-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250122093028.52416-1-philmd@linaro.org> References: <20250122093028.52416-1-philmd@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::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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=unavailable 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 |
cpus: Prefer cached CpuClass over CPU_GET_CLASS() macro
|
expand
|
diff --git a/disas/disas-common.c b/disas/disas-common.c index de61f6d8a12..57505823cb7 100644 --- a/disas/disas-common.c +++ b/disas/disas-common.c @@ -67,9 +67,8 @@ void disas_initialize_debug_target(CPUDebug *s, CPUState *cpu) s->info.endian = BFD_ENDIAN_LITTLE; } - CPUClass *cc = CPU_GET_CLASS(cpu); - if (cc->disas_set_info) { - cc->disas_set_info(cpu, &s->info); + if (cpu->cc->disas_set_info) { + cpu->cc->disas_set_info(cpu, &s->info); } }