qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/23] Introduce MMU_INDEX()
@ 2023-08-06 12:17 Helge Deller
  2023-08-06 12:17 ` [PATCH v2 01/23] cpu-defs.h; Add MMU_INDEX() helper Helge Deller
                   ` (22 more replies)
  0 siblings, 23 replies; 27+ messages in thread
From: Helge Deller @ 2023-08-06 12:17 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel

This is v2 of the patchset.
It is *identical* to v1, but v1 missed patches #20-24 since I hit
a mail batch limit with my email provider.

This patchset introduces the new helper macro MMU_INDEX().
whill will (after applying the last patch) allow to generate
 smaller code by the tcg.

Patch #1 adds the MMU_INDEX() helper macro, which simply wraps
the given value.

Patches #2-#23 are trivial patches which convert each target to use the MMU_INDEX()
macro.

Patch #24 switches MMU_INDEX() to return a new MMU idx which
is counts down from (NB_MMU_MODES-1). That change reduces the needed
negative offset to access the TLB entry which in turn let the tcg compiler
generates smaller instructions.

Please review.

Helge

Helge Deller (23):
  cpu-defs.h; Add MMU_INDEX() helper
  target/i386: Use MMU_INDEX() helper
  target/hppa: Use MMU_INDEX() helper
  target/alpha: Use MMU_INDEX() helper
  target/avr: Use MMU_INDEX() helper
  target/hexagon: Use MMU_INDEX() helper
  target/loongarch: Use MMU_INDEX() helper
  target/mips: Use MMU_INDEX() helper
  target/openrisc: Use MMU_INDEX() helper
  target/riscv: Use MMU_INDEX() helper
  target/s390x: Use MMU_INDEX() helper
  target/sparc: Use MMU_INDEX() helper
  target/xtensa: Use MMU_INDEX() helper
  target/arm: Use MMU_INDEX() helper
  target/cris: Use MMU_INDEX() helper
  target/m68k: Use MMU_INDEX() helper
  target/microblaze: Use MMU_INDEX() helper
  target/m68k: Use MMU_INDEX() helper
  target/ppc: Use MMU_INDEX() helper
  target/rx: Use MMU_INDEX() helper
  target/sh4: Use MMU_INDEX() helper
  target/tricore: Use MMU_INDEX() helper
  cpu-defs.h: Reduce generated code size by inverting MMU_INDEX()

 include/exec/cpu-defs.h   | 10 ++++++++++
 target/alpha/cpu.h        |  6 +++---
 target/arm/cpu.h          |  4 ++--
 target/avr/cpu.h          |  4 ++--
 target/cris/cpu.h         |  4 ++--
 target/hexagon/cpu.h      |  2 +-
 target/hppa/cpu.h         |  6 +++---
 target/i386/cpu.h         | 10 +++++-----
 target/loongarch/cpu.h    |  8 ++++----
 target/m68k/cpu.h         |  6 +++---
 target/microblaze/cpu.h   |  6 +++---
 target/mips/cpu.h         |  6 +++---
 target/nios2/cpu.h        |  4 ++--
 target/openrisc/cpu.h     |  6 +++---
 target/ppc/cpu.h          |  5 +++--
 target/riscv/cpu.h        |  4 ++--
 target/riscv/cpu_helper.c |  2 +-
 target/rx/cpu.h           |  2 +-
 target/s390x/cpu.h        | 10 +++++-----
 target/sh4/cpu.h          |  7 ++++---
 target/sparc/cpu.h        | 20 ++++++++++----------
 target/tricore/cpu.h      |  4 ++--
 target/xtensa/cpu.h       |  4 ++--
 23 files changed, 76 insertions(+), 64 deletions(-)

--
2.41.0



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

end of thread, other threads:[~2023-08-06 14:43 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-06 12:17 [PATCH v2 00/23] Introduce MMU_INDEX() Helge Deller
2023-08-06 12:17 ` [PATCH v2 01/23] cpu-defs.h; Add MMU_INDEX() helper Helge Deller
2023-08-06 12:17 ` [PATCH v2 02/23] target/i386: Use " Helge Deller
2023-08-06 12:17 ` [PATCH v2 03/23] target/hppa: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 04/23] target/alpha: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 05/23] target/avr: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 06/23] target/hexagon: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 07/23] target/loongarch: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 08/23] target/mips: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 09/23] target/openrisc: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 10/23] target/riscv: " Helge Deller
2023-08-06 14:30   ` Richard Henderson
2023-08-06 14:42     ` Helge Deller
2023-08-06 12:17 ` [PATCH v2 11/23] target/s390x: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 12/23] target/sparc: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 13/23] target/xtensa: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 14/23] target/arm: " Helge Deller
2023-08-06 14:31   ` Richard Henderson
2023-08-06 12:17 ` [PATCH v2 15/23] target/cris: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 16/23] target/m68k: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 17/23] target/microblaze: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 18/23] target/m68k: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 19/23] target/ppc: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 20/23] target/rx: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 21/23] target/sh4: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 22/23] target/tricore: " Helge Deller
2023-08-06 12:17 ` [PATCH v2 23/23] cpu-defs.h: Reduce generated code size by inverting MMU_INDEX() Helge Deller

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).