qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/23] Fix NB_MMU_MODES to 16
@ 2023-03-06 17:52 Anton Johansson via
  2023-03-06 17:52 ` [PATCH 01/23] include/exec: Set default `NB_MMU_MODES` " Anton Johansson via
                   ` (26 more replies)
  0 siblings, 27 replies; 31+ messages in thread
From: Anton Johansson via @ 2023-03-06 17:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: ale, richard.henderson, pbonzini, eduardo, peter.maydell, mrolnik,
	tsimpson, gaosong, yangxiaojuan, edgar.iglesias, philmd, shorne,
	palmer, alistair.francis, bin.meng, ysato, mark.cave-ayland,
	atar4qemu, kbastian

This patchset fixes NB_MMU_MODES to 16 for all targets, meaning the
macro is no longer target-specific.  16 mmu modes is large enough to
cover all currently supported targets (12 arm, 10 ppc, ...), and is the
maxiumum supported by the softmmu tlb api.

As mentioned by Richard in response to our RFC, softmmu tlbs are
dynamically resized and so the overhead of an unused mmu index is fairly
low.

The grand goal is to allow for heterogeneous QEMU binaries
consisting of multiple frontends.

RFC: https://lists.nongnu.org/archive/html/qemu-devel/2022-12/msg04518.html

Anton Johansson (23):
  include/exec: Set default `NB_MMU_MODES` to 16
  target/alpha: Remove `NB_MMU_MODES` define
  target/arm: Remove `NB_MMU_MODES` define
  target/avr: Remove `NB_MMU_MODES` define
  target/cris: Remove `NB_MMU_MODES` define
  target/hexagon: Remove `NB_MMU_MODES` define
  target/hppa: Remove `NB_MMU_MODES` define
  target/i386: Remove `NB_MMU_MODES` define
  target/loongarch: Remove `NB_MMU_MODES` define
  target/m68k: Remove `NB_MMU_MODES` define
  target/microblaze: Remove `NB_MMU_MODES` define
  target/mips: Remove `NB_MMU_MODES` define
  target/nios2: Remove `NB_MMU_MODES` define
  target/openrisc: Remove `NB_MMU_MODES` define
  target/ppc: Remove `NB_MMU_MODES` define
  target/riscv: Remove `NB_MMU_MODES` define
  target/rx: Remove `NB_MMU_MODES` define
  target/s390x: Remove `NB_MMU_MODES` define
  target/sh4: Remove `NB_MMU_MODES` define
  target/sparc: Remove `NB_MMU_MODES` define
  target/tricore: Remove `NB_MMU_MODES` define
  target/xtensa: Remove `NB_MMU_MODES` define
  include/exec: Remove guards around `NB_MMU_MODES`

 include/exec/cpu-defs.h       | 9 ++++++---
 target/alpha/cpu-param.h      | 2 --
 target/arm/cpu-param.h        | 2 --
 target/avr/cpu-param.h        | 1 -
 target/cris/cpu-param.h       | 1 -
 target/hexagon/cpu-param.h    | 2 --
 target/hppa/cpu-param.h       | 1 -
 target/i386/cpu-param.h       | 1 -
 target/loongarch/cpu-param.h  | 1 -
 target/m68k/cpu-param.h       | 1 -
 target/microblaze/cpu-param.h | 1 -
 target/microblaze/cpu.h       | 2 +-
 target/mips/cpu-param.h       | 1 -
 target/nios2/cpu-param.h      | 1 -
 target/openrisc/cpu-param.h   | 1 -
 target/ppc/cpu-param.h        | 1 -
 target/riscv/cpu-param.h      | 1 -
 target/rx/cpu-param.h         | 2 --
 target/s390x/cpu-param.h      | 1 -
 target/sh4/cpu-param.h        | 1 -
 target/sparc/cpu-param.h      | 2 --
 target/tricore/cpu-param.h    | 1 -
 target/xtensa/cpu-param.h     | 1 -
 23 files changed, 7 insertions(+), 30 deletions(-)

--
2.39.1


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

end of thread, other threads:[~2023-03-07  0:59 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 17:52 [PATCH 00/23] Fix NB_MMU_MODES to 16 Anton Johansson via
2023-03-06 17:52 ` [PATCH 01/23] include/exec: Set default `NB_MMU_MODES` " Anton Johansson via
2023-03-06 18:48   ` Philippe Mathieu-Daudé
2023-03-06 17:52 ` [PATCH 02/23] target/alpha: Remove `NB_MMU_MODES` define Anton Johansson via
2023-03-06 17:52 ` [PATCH 03/23] target/arm: " Anton Johansson via
2023-03-06 18:51   ` Philippe Mathieu-Daudé
2023-03-06 17:52 ` [PATCH 04/23] target/avr: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 05/23] target/cris: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 06/23] target/hexagon: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 07/23] target/hppa: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 08/23] target/i386: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 09/23] target/loongarch: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 10/23] target/m68k: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 11/23] target/microblaze: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 12/23] target/mips: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 13/23] target/nios2: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 14/23] target/openrisc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 15/23] target/ppc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 16/23] target/riscv: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 17/23] target/rx: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 18/23] target/s390x: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 19/23] target/sh4: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 20/23] target/sparc: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 21/23] target/tricore: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 22/23] target/xtensa: " Anton Johansson via
2023-03-06 17:52 ` [PATCH 23/23] include/exec: Remove guards around `NB_MMU_MODES` Anton Johansson via
2023-03-06 18:54 ` [PATCH 00/23] Fix NB_MMU_MODES to 16 Alex Bennée
2023-03-06 18:56 ` Philippe Mathieu-Daudé
2023-03-06 21:30   ` Philippe Mathieu-Daudé
2023-03-06 18:58 ` Richard Henderson
2023-03-07  0:58 ` Richard Henderson

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