qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] More core code ENV_GET_CPU() removals
@ 2015-06-16  7:41 Peter Crosthwaite
  2015-06-16  7:41 ` [Qemu-devel] [PATCH v2 1/5] translate-all: Change tb_flush() env argument to cpu Peter Crosthwaite
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Peter Crosthwaite @ 2015-06-16  7:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Crosthwaite, afaerber, rth

Hi Andreas, Richard and all,

I'm moving towards the goal of having no core code usages of ENV_GET_CPU.
This has two advantages:

1: It means we are closer to common-obj'ing core code like exec.c, cpus.c
and friends.
2: Multi arch is easier if ENV_GET_CPU() stays arch specific. It means I
don't need those patches where I reorder the env within the arch specific
CPUState. This allows continuing placement of arch specifics before the
env in the CPU container (which has TCG perf advantages).

Due to point 1, I'm sending this ahead as I think it has standalone value,
rather than send as part of multi-arch.

Regards,
Peter

changed since v1 (AF, Eduardo review):
Rebase of Bharata's patches
Add () to fn's in commit messages
Remove uses of ENV_GET_CPU() in target code
Include and complete cpu-exec patch (formerly in multi-arch RFC v2)

Peter Crosthwaite (5):
  translate-all: Change tb_flush() env argument to cpu
  gdbserver: _fork: Change fn to accept cpu instead of env
  cpus: Change tcg_cpu_exec arg to cpu, not env
  cpus: Change exec_init() arg to cpu, not env
  cpu-exec: Purge all uses of CPU_GET_ENV()

 bsd-user/main.c             |  5 +++--
 cpu-exec.c                  | 28 +++++++++++++---------------
 cpus.c                      |  8 +++-----
 dtc                         |  2 +-
 exec.c                      |  7 +++----
 gdbstub.c                   |  9 +++------
 include/exec/exec-all.h     |  4 ++--
 include/exec/gdbstub.h      |  2 +-
 linux-user/main.c           | 30 +++++++++++++++---------------
 linux-user/signal.c         |  2 +-
 target-alpha/cpu.c          |  2 +-
 target-alpha/cpu.h          |  2 +-
 target-alpha/sys_helper.c   |  2 +-
 target-arm/cpu.c            |  2 +-
 target-arm/cpu.h            |  2 +-
 target-cris/cpu.c           |  2 +-
 target-cris/cpu.h           |  2 +-
 target-i386/cpu.c           |  2 +-
 target-i386/cpu.h           |  2 +-
 target-i386/translate.c     |  2 +-
 target-lm32/cpu.c           |  2 +-
 target-lm32/cpu.h           |  2 +-
 target-m68k/cpu.c           |  2 +-
 target-m68k/cpu.h           |  2 +-
 target-microblaze/cpu.c     |  2 +-
 target-microblaze/cpu.h     |  2 +-
 target-mips/cpu.c           |  2 +-
 target-mips/cpu.h           |  2 +-
 target-moxie/cpu.c          |  2 +-
 target-moxie/cpu.h          |  2 +-
 target-openrisc/cpu.c       |  2 +-
 target-openrisc/cpu.h       |  2 +-
 target-ppc/cpu.h            |  2 +-
 target-ppc/translate_init.c |  2 +-
 target-s390x/cpu.c          |  2 +-
 target-s390x/cpu.h          |  2 +-
 target-sh4/cpu.c            |  2 +-
 target-sh4/cpu.h            |  2 +-
 target-sparc/cpu.c          |  2 +-
 target-sparc/cpu.h          |  2 +-
 target-tricore/cpu.c        |  2 +-
 target-tricore/cpu.h        |  2 +-
 target-unicore32/cpu.c      |  2 +-
 target-unicore32/cpu.h      |  3 ++-
 target-xtensa/cpu.c         |  2 +-
 target-xtensa/cpu.h         |  2 +-
 translate-all.c             |  6 ++----
 47 files changed, 84 insertions(+), 92 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-17 20:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16  7:41 [Qemu-devel] [PATCH v2 0/5] More core code ENV_GET_CPU() removals Peter Crosthwaite
2015-06-16  7:41 ` [Qemu-devel] [PATCH v2 1/5] translate-all: Change tb_flush() env argument to cpu Peter Crosthwaite
2015-06-16  7:41 ` [Qemu-devel] [PATCH v2 2/5] gdbserver: _fork: Change fn to accept cpu instead of env Peter Crosthwaite
2015-06-16  7:41 ` [Qemu-devel] [PATCH v2 3/5] cpus: Change tcg_cpu_exec arg to cpu, not env Peter Crosthwaite
2015-06-16  7:42 ` [Qemu-devel] [PATCH v2 4/5] cpus: Change exec_init() " Peter Crosthwaite
2015-06-16 11:14   ` Aurelien Jarno
2015-06-16  7:42 ` [Qemu-devel] [PATCH v2 5/5] cpu-exec: Purge all uses of CPU_GET_ENV() Peter Crosthwaite
2015-06-16 10:44   ` Aurelien Jarno
2015-06-17  7:26     ` Peter Crosthwaite
2015-06-17 18:51 ` [Qemu-devel] [PATCH v2 0/5] More core code ENV_GET_CPU() removals Eduardo Habkost
2015-06-17 20:16   ` Peter Crosthwaite
2015-06-17 20:36     ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).