Skip to content

Fix NB_MMU_MODES to 16

Anton Johansson via qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23include/exec: Set default `NB_MMU_MODES` to 16include/exec/cpu-defs.h+8 -31 reply
2/23target/alpha: Remove `NB_MMU_MODES` definetarget/alpha/cpu-param.h+0 -20 replies
3/23target/arm: Remove `NB_MMU_MODES` definetarget/arm/cpu-param.h+0 -21 reply
4/23target/avr: Remove `NB_MMU_MODES` definetarget/avr/cpu-param.h+0 -10 replies
5/23target/cris: Remove `NB_MMU_MODES` definetarget/cris/cpu-param.h+0 -10 replies
6/23target/hexagon: Remove `NB_MMU_MODES` definetarget/hexagon/cpu-param.h+0 -20 replies
7/23target/hppa: Remove `NB_MMU_MODES` definetarget/hppa/cpu-param.h+0 -10 replies
8/23target/i386: Remove `NB_MMU_MODES` definetarget/i386/cpu-param.h+0 -10 replies
9/23target/loongarch: Remove `NB_MMU_MODES` definetarget/loongarch/cpu-param.h+0 -10 replies
10/23target/m68k: Remove `NB_MMU_MODES` definetarget/m68k/cpu-param.h+0 -10 replies
11/23target/microblaze: Remove `NB_MMU_MODES` definetarget/microblaze/cpu-param.h target/microblaze/cpu.h+1 -20 replies
12/23target/mips: Remove `NB_MMU_MODES` definetarget/mips/cpu-param.h+0 -10 replies
13/23target/nios2: Remove `NB_MMU_MODES` definetarget/nios2/cpu-param.h+0 -10 replies
14/23target/openrisc: Remove `NB_MMU_MODES` definetarget/openrisc/cpu-param.h+0 -10 replies
15/23target/ppc: Remove `NB_MMU_MODES` definetarget/ppc/cpu-param.h+0 -10 replies
16/23target/riscv: Remove `NB_MMU_MODES` definetarget/riscv/cpu-param.h+0 -10 replies
17/23target/rx: Remove `NB_MMU_MODES` definetarget/rx/cpu-param.h+0 -20 replies
18/23target/s390x: Remove `NB_MMU_MODES` definetarget/s390x/cpu-param.h+0 -10 replies
19/23target/sh4: Remove `NB_MMU_MODES` definetarget/sh4/cpu-param.h+0 -10 replies
20/23target/sparc: Remove `NB_MMU_MODES` definetarget/sparc/cpu-param.h+0 -20 replies
21/23target/tricore: Remove `NB_MMU_MODES` definetarget/tricore/cpu-param.h+0 -10 replies
22/23target/xtensa: Remove `NB_MMU_MODES` definetarget/xtensa/cpu-param.h+0 -10 replies
23/23include/exec: Remove guards around `NB_MMU_MODES`include/exec/cpu-defs.h+0 -20 replies

Reviews trailers per patch

None of the 23 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlex BennéeRichard HendersonPhilippe Mathieu-Daudé
SeriesR-b R-b R-b
1/23
2/23
3/23
4/23
5/23
6/23
7/23
8/23
9/23
10/23
11/23
12/23
13/23
14/23
15/23
16/23
17/23
18/23
19/23
20/23
21/23
22/23
23/23

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/23] Fix NB_MMU_MODES to 16

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