QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>,
	qemu-riscv@nongnu.org, "Eduardo Habkost" <ehabkost@redhat.com>,
	"David Hildenbrand" <david@redhat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Greg Kurz" <groug@kaod.org>,
	qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org,
	"Claudio Fontana" <cfontana@suse.de>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"David Gibson" <david@gibson.dropbear.id.au>
Subject: [RFC PATCH v2 0/8] cpu: Move CPUClass::has_work() to TCGCPUOps
Date: Thu,  4 Mar 2021 23:23:15 +0100
Message-ID: <20210304222323.1954755-1-f4bug@amsat.org> (raw)

Hi,\r
\r
cpu_has_work() isn't used out of TCG, so restrict it to it.\r
RFC because maybe it could?\r
\r
Since v1:\r
- finished PPC\r
- check cc->tcg_ops->has_work non-null (thuth)\r
\r
Based-on: <20210227232519.222663-1-richard.henderson@linaro.org>\r
\r
Philippe Mathieu-Daudé (8):\r
  sysemu/tcg: Restrict tcg_exec_init() to CONFIG_TCG\r
  sysemu/tcg: Restrict qemu_tcg_mttcg_enabled() to TCG\r
  target/arm: Directly use arm_cpu_has_work instead of\r
    CPUClass::has_work\r
  target/s390x: Move s390_cpu_has_work to excp_helper.c\r
  target/ppc: Duplicate the TCGCPUOps structure for POWER CPUs\r
  cpu: Declare cpu_has_work() in 'sysemu/tcg.h'\r
  cpu: Move CPUClass::has_work() to TCGCPUOps\r
  target/arm: Restrict arm_cpu_has_work() to TCG\r
\r
 include/hw/core/cpu.h           | 27 -----------\r
 include/hw/core/tcg-cpu-ops.h   |  4 ++\r
 include/sysemu/tcg.h            | 30 +++++++++++--\r
 target/arm/internals.h          |  1 +\r
 target/s390x/internal.h         |  1 +\r
 accel/tcg/cpu-exec.c            | 12 +++++\r
 hw/core/cpu.c                   |  6 ---\r
 softmmu/cpus.c                  |  1 +\r
 target/alpha/cpu.c              |  2 +-\r
 target/arm/cpu.c                |  6 +--\r
 target/arm/op_helper.c          |  2 +-\r
 target/avr/cpu.c                |  2 +-\r
 target/cris/cpu.c               |  3 +-\r
 target/hexagon/cpu.c            |  2 +-\r
 target/hppa/cpu.c               |  2 +-\r
 target/i386/cpu.c               |  7 +--\r
 target/i386/tcg/tcg-cpu.c       |  6 +++\r
 target/lm32/cpu.c               |  2 +-\r
 target/m68k/cpu.c               |  2 +-\r
 target/microblaze/cpu.c         |  2 +-\r
 target/mips/cpu.c               |  2 +-\r
 target/moxie/cpu.c              |  2 +-\r
 target/nios2/cpu.c              |  2 +-\r
 target/openrisc/cpu.c           |  2 +-\r
 target/riscv/cpu.c              |  2 +-\r
 target/rx/cpu.c                 |  2 +-\r
 target/s390x/cpu.c              | 19 +-------\r
 target/s390x/excp_helper.c      | 18 ++++++++\r
 target/sh4/cpu.c                |  2 +-\r
 target/sparc/cpu.c              |  2 +-\r
 target/tilegx/cpu.c             |  2 +-\r
 target/tricore/cpu.c            |  2 +-\r
 target/unicore32/cpu.c          |  2 +-\r
 target/xtensa/cpu.c             |  2 +-\r
 tcg/tcg.c                       |  1 +\r
 target/ppc/translate_init.c.inc | 79 ++++++++++++++++++++++++++++++---\r
 36 files changed, 171 insertions(+), 90 deletions(-)\r
\r
-- \r
2.26.2\r
\r


             reply index

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 22:23 Philippe Mathieu-Daudé [this message]
2021-03-04 22:23 ` [RFC PATCH v2 1/8] sysemu/tcg: Restrict tcg_exec_init() to CONFIG_TCG Philippe Mathieu-Daudé
2021-03-08 13:40   ` David Hildenbrand
2021-03-08 14:50     ` Claudio Fontana
2021-03-04 22:23 ` [RFC PATCH v2 2/8] sysemu/tcg: Restrict qemu_tcg_mttcg_enabled() to TCG Philippe Mathieu-Daudé
2021-03-08 14:52   ` Claudio Fontana
2021-03-04 22:23 ` [RFC PATCH v2 3/8] target/arm: Directly use arm_cpu_has_work instead of CPUClass::has_work Philippe Mathieu-Daudé
2021-03-08 14:53   ` Claudio Fontana
2021-03-04 22:23 ` [RFC PATCH v2 4/8] target/s390x: Move s390_cpu_has_work to excp_helper.c Philippe Mathieu-Daudé
2021-03-04 22:23 ` [RFC PATCH v2 5/8] target/ppc: Duplicate the TCGCPUOps structure for POWER CPUs Philippe Mathieu-Daudé
2021-03-05  1:05   ` David Gibson
2021-03-04 22:23 ` [RFC PATCH v2 6/8] cpu: Declare cpu_has_work() in 'sysemu/tcg.h' Philippe Mathieu-Daudé
2021-03-08 12:13   ` Claudio Fontana
2021-03-08 12:17   ` Claudio Fontana
2021-03-08 13:37     ` Philippe Mathieu-Daudé
2021-03-04 22:23 ` [RFC PATCH v2 7/8] cpu: Move CPUClass::has_work() to TCGCPUOps Philippe Mathieu-Daudé
2021-03-05  1:05   ` David Gibson
2021-03-04 22:23 ` [RFC PATCH v2 8/8] target/arm: Restrict arm_cpu_has_work() to TCG Philippe Mathieu-Daudé
2021-03-13 23:55 ` [RFC PATCH v2 0/8] cpu: Move CPUClass::has_work() to TCGCPUOps Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210304222323.1954755-1-f4bug@amsat.org \
    --to=f4bug@amsat.org \
    --cc=cfontana@suse.de \
    --cc=cohuck@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=david@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=groug@kaod.org \
    --cc=laurent@vivier.eu \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git
	git clone --mirror https://lore.kernel.org/qemu-devel/2 qemu-devel/git/2.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git