Introduce MMU_INDEX()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest23 patches 3 repliesIn review
- v119 of 23 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | cpu-defs.h; Add MMU_INDEX() helperinclude/ | +5 | 0 replies | |
| 2/23 | target/i386: Use MMU_INDEX() helpertarget/ | +5 | 0 replies | |
| 3/23 | target/hppa: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 4/23 | target/alpha: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 5/23 | target/avr: Use MMU_INDEX() helpertarget/ | +2 | 0 replies | |
| 6/23 | target/hexagon: Use MMU_INDEX() helpertarget/ | +1 | 0 replies | |
| 7/23 | target/loongarch: Use MMU_INDEX() helpertarget/ | +4 | 0 replies | |
| 8/23 | target/mips: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 9/23 | target/openrisc: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 10/23 | target/riscv: Use MMU_INDEX() helpertarget/ target/ | +3 | 2 replies | |
| 11/23 | target/s390x: Use MMU_INDEX() helpertarget/ | +5 | 0 replies | |
| 12/23 | target/sparc: Use MMU_INDEX() helpertarget/ | +10 | 0 replies | |
| 13/23 | target/xtensa: Use MMU_INDEX() helpertarget/ | +2 | 0 replies | |
| 14/23 | target/arm: Use MMU_INDEX() helpertarget/ | +2 | 1 reply | |
| 15/23 | target/cris: Use MMU_INDEX() helpertarget/ | +2 | 0 replies | |
| 16/23 | target/m68k: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 17/23 | target/microblaze: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 18/23 | target/m68k: Use MMU_INDEX() helpertarget/ | +2 | 0 replies | |
| 19/23 | target/ppc: Use MMU_INDEX() helpertarget/ | +3 | 0 replies | |
| 20/23 | target/rx: Use MMU_INDEX() helpertarget/ | +1 | 0 replies | |
| 21/23 | target/sh4: Use MMU_INDEX() helpertarget/ | +4 | 0 replies | |
| 22/23 | target/tricore: Use MMU_INDEX() helpertarget/ | +2 | 0 replies | |
| 23/23 | cpu-defs.h: Reduce generated code size by inverting MMU_INDEX()include/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/23] Introduce MMU_INDEX()
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