From patchwork Fri Nov 15 15:20:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 843497 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp898679wrc; Fri, 15 Nov 2024 07:22:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVy6+eCvuqMAW+UgeP2jHucCzChFVFSXT9T44Z4T+eYT72GTau7RMkXjmNrQ4Fkw3v4Am/VCg==@linaro.org X-Google-Smtp-Source: AGHT+IGbA8vPKsa5upc6yEzTjZf6PrIk03mzegyJyCQm+ColHqPwRS0qdLZyN2KN+3w9QjJd68iD X-Received: by 2002:a05:622a:4d4b:b0:462:f685:3c29 with SMTP id d75a77b69052e-46363e95508mr38902161cf.42.1731684144607; Fri, 15 Nov 2024 07:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731684144; cv=none; d=google.com; s=arc-20240605; b=kbJlid0CceF6vvL9ude+4TywB2erc1sTKxw+HxR21VHDoNZZsbLI5mmTI+CE5Sjx0U UWkTE0ALdR7P2V54CDZY4DUB/byN79ZKP0It8mG1nPi+2G4vXdbWfOZHCO8DusIa9eOT vuhVWV17oqIOc4VtLmYiXq8LBF2mmW2aBmIXH42TJ+aoa45fAhL01GtKallF4G1M4wRB bXMbRUch5imPts7iBYDKVIvaRfEsFlbKGTpLIApUY/B2RtAuX2WauzWrPJSzzfHajzjW nVKIvR2BPqAqJ0bPjx7bmBOVQiVv7fD9U+dyA38mfsT1izgAnwPgZ25V0cyYyO5cseXo eQcA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=2oVIoGN5+KTiuTHFLsyY+4yDft6p5jyzLihrKyZIft8=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=Ky0IYALsxIRAUK3yxvbiP8q5xFs2CfNaP8cM17VsehiIM0dyue58+7Lj9XDvdIAIyP BqmBFC6V4MiWcOqt6JFThAGDGnFrqMJxJBWAUUUnEBxGzlXodeAhcoEoIH0fvrGCGqPA X2JDFxgizSP6w7by5WBo2taYMd2F2kGE7Ev4rdc8xueWBCUoh/XhK+qzcg15XgeAx3XS Y6d02Xj7W9YVqUlomxdY+j7RXF7G53vwt0P1qAsDFYBa89KJGRxjBX1INP3r5beE9esf IXLqOR2QDLrdeLCPH20U1S3O8pIGDLW36TmivUI9Ildn+2NBqfT+EAPOSUiSbkM8pvhH Crow==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tLeeiGU6; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4635ab324b3si37119431cf.513.2024.11.15.07.22.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Nov 2024 07:22:24 -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=tLeeiGU6; 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 ) id 1tBy8A-0001n1-3W; Fri, 15 Nov 2024 10:21:06 -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 1tBy86-0001md-9d for qemu-devel@nongnu.org; Fri, 15 Nov 2024 10:21:03 -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 ) id 1tBy82-00043J-Ck for qemu-devel@nongnu.org; Fri, 15 Nov 2024 10:21:00 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4314b316495so6761275e9.2 for ; Fri, 15 Nov 2024 07:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731684055; x=1732288855; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2oVIoGN5+KTiuTHFLsyY+4yDft6p5jyzLihrKyZIft8=; b=tLeeiGU6uhNpyupeJOrIifXpX/nl4bCp9ukjJk0UDuoNhGLRUb0LWNbHg3ErmUb2J7 2ivVQC97BmEdziLjC1Hj3ILFglzbZ1JVkFNMIzvjnUzj8CP91q0OHqVl/3wAtmoK0a9l D6uUZNLpkyDYsPdFYablv92kTu4Xu/PNYw84/gKJCHHTKcKPGH28GlwTVr9uqx16D103 ri2rvvlagJuttvPVGNq5EYfTe+kEXas/kFMp8ZQ2+f/pu9Crv+ZtYMxT6Gm5rWDoUR4Y KaF9FsRiVNo9gAWGnpTxupFCRGWejMpKWye+V/0JuDUvN+FLH2FQSLqGxi8/00oBHPAg WM1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731684055; x=1732288855; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2oVIoGN5+KTiuTHFLsyY+4yDft6p5jyzLihrKyZIft8=; b=hQAJ+NdzD2hkZSbYlmezD8G/G4+T6fsN/B/RjcKmD6qw8A6LWGIc5u9aCGHTH+oHiT QhiiGQ/JfRCgVrfedu0Zqu+aLcLRtz4Hx4tHkaDD4kAnvGW77I2F0C+YqjkyKvYduZO7 hujQiZhjQS1210dOFRt2zqTUT6x+/i3GTvfMHqLMkjsh4fdWxK3u0GTYd1BgDi8sPTX9 FSibPB0Y0hmwLWcY/nZZe5n0UWH74sEe3V79h/ctvitgx/5iRhThL466SrLszhlzWK40 RNIYG8DdYiaYKfZeX+9k+hk5Qo76ooktyPGDGHMwWiIiaQ17QJZVi7KkzdTWFw+QlHPj +wmw== X-Gm-Message-State: AOJu0YwhmYFBCgofjHJe5/ietKlJp/3nOMeASBrtpwJR0+3cWOazRRwF Q3dkviP+R+XfCO1YWpgbM9yp3R9kkdUDEArnFJl600GmEeo51X2mo1FRUqkwOR9AxBc4Ht1hIFf + X-Received: by 2002:a05:600c:4693:b0:431:55af:a22f with SMTP id 5b1f17b1804b1-432df72c9e7mr26704305e9.13.1731684055592; Fri, 15 Nov 2024 07:20:55 -0800 (PST) Received: from localhost.localdomain ([176.187.214.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab7878esm57379325e9.14.2024.11.15.07.20.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 15 Nov 2024 07:20:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 00/10] accel/tcg: API prototype cleanups Date: Fri, 15 Nov 2024 16:20:43 +0100 Message-ID: <20241115152053.66442-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 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=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 Preparatory cleanup patches extracted to bigger series which rename TCG frontend functions to avoid name clash when linking multiple target into the same binary. Worth to remove few QOM cast boilerplate, per diff-stat: 64 files changed, 230 insertions(+), 355 deletions(-) --- ^^^ Philippe Mathieu-Daudé (10): target/mips: Drop left-over comment about Jazz machine target/loongarch: Declare loongarch_cpu_dump_state() locally target/sparc: Move sparc_restore_state_to_opc() to cpu.c accel/tcg: Ensure frontends define restore_state_to_opc handler accel/tcg: Move cpu_unwind_state_data() declaration accel/tcg: Remove cpu_unwind_state_data() unused CPUState argument accel/tcg: Reduce log_pc() declaration scope hw/core/cpu: Pass CPUArchState to set/get_pc() handlers hw/core/cpu: Pass CPUArchState to restore_state_to_opc() handler hw/core/cpu: Pass CPUArchState to cpu_dump_state() handler accel/tcg/internal-target.h | 10 --------- include/exec/cpu-common.h | 13 ------------ include/exec/translate-all.h | 11 ++++++++++ include/hw/core/cpu.h | 8 +++---- include/hw/core/tcg-cpu-ops.h | 2 +- target/alpha/cpu.h | 2 +- target/arm/internals.h | 2 +- target/hppa/cpu.h | 2 +- target/i386/cpu.h | 2 +- target/loongarch/internals.h | 2 -- target/m68k/cpu.h | 2 +- target/microblaze/cpu.h | 2 +- target/mips/tcg/tcg-internal.h | 2 +- target/openrisc/cpu.h | 2 +- target/ppc/cpu.h | 2 +- target/rx/cpu.h | 2 +- target/s390x/s390x-internal.h | 4 ++-- target/sh4/cpu.h | 2 +- target/sparc/cpu.h | 11 +++++++--- target/tricore/cpu.h | 2 +- target/xtensa/cpu.h | 2 +- accel/tcg/cpu-exec.c | 25 +++++++++++++++++----- accel/tcg/translate-all.c | 6 +++--- hw/core/cpu-common.c | 2 +- hw/core/generic-loader.c | 2 +- target/alpha/cpu.c | 10 +++------ target/alpha/helper.c | 3 +-- target/arm/cpu.c | 28 ++++++++---------------- target/avr/cpu.c | 19 ++++++----------- target/hexagon/cpu.c | 21 +++++++----------- target/hppa/cpu.c | 18 ++++++---------- target/hppa/helper.c | 3 +-- target/hppa/int_helper.c | 2 +- target/hppa/sys_helper.c | 6 ++---- target/i386/cpu-dump.c | 5 ++--- target/i386/cpu.c | 12 ++++------- target/i386/helper.c | 3 ++- target/i386/tcg/tcg-cpu.c | 4 +--- target/loongarch/cpu.c | 15 ++++++------- target/m68k/cpu.c | 19 ++++++----------- target/m68k/translate.c | 3 +-- target/microblaze/cpu.c | 22 +++++++------------ target/microblaze/translate.c | 3 +-- target/mips/cpu.c | 17 +++++---------- target/mips/tcg/translate.c | 4 +--- target/openrisc/cpu.c | 24 ++++++++------------- target/openrisc/sys_helper.c | 7 +++--- target/openrisc/translate.c | 3 +-- target/ppc/cpu_init.c | 23 +++++++------------- target/riscv/cpu.c | 16 ++++---------- target/riscv/tcg/tcg-cpu.c | 4 +--- target/rx/cpu.c | 18 ++++++---------- target/rx/translate.c | 3 +-- target/s390x/cpu-dump.c | 3 +-- target/s390x/cpu.c | 12 ++++------- target/s390x/tcg/translate.c | 3 +-- target/sh4/cpu.c | 20 ++++++----------- target/sh4/translate.c | 3 +-- target/sparc/cpu.c | 39 ++++++++++++++++++++++++---------- target/sparc/translate.c | 32 ---------------------------- target/tricore/cpu.c | 12 +++++------ target/tricore/translate.c | 3 +-- target/xtensa/cpu.c | 18 ++++++---------- target/xtensa/translate.c | 3 +-- 64 files changed, 230 insertions(+), 355 deletions(-)