target-mips: add microMIPS ASE support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | target-mips: break out [ls][wd]c1 and rdhwr insn generationtarget-mips/ | +59 | 0 replies | |
| 2/10 | target-mips: add microMIPS-specific bits to mips-defs.htarget-mips/ target-mips/ | +4 | 0 replies | |
| 3/10 | target-mips: add enum constants for various invocations of FOPtarget-mips/ | +180 | 0 replies | |
| 4/10 | target-mips: refactor {c, abs}.cond.fmt insnstarget-mips/ | +149 | 2 replies | |
| 5/10 | target-mips: small changes to use new FMT_ enumstarget-mips/ | +9 | 0 replies | |
| 6/10 | target-mips: add microMIPS ASE supporttarget-mips/ target-mips/ target-mips/ | +2567 | 0 replies | |
| 7/10 | target-mips: add microMIPS CPUstarget-mips/ | +61 | 0 replies | |
| 8/10 | target-mips: add microMIPS exception handler supporttarget-mips/ | +15 | 0 replies | |
| 9/10 | linux-user: honor low bit of entry PC for MIPSlinux-user/ | +3 | 0 replies | |
| 10/10 | hw: honor low bit in mipssim machinehw/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 00/10] target-mips: add microMIPS ASE support
This patch series adds support for the microMIPS ASE. microMIPS is a new ASE similar to MIPS16, but re-encodes the entire instruction set into 16-bit and 32-bit instructions--in contrast to MIPS16, which re-encodes only integer instructions. The mechanisms for going in and out of microMIPS mode are identical to those for MIPS16; a given chip cannot support both ASEs simultaneously.
The first half of the series consists of small refactorings to make it easier to delegate microMIPS instruction decoding to the usual gen_* functions. The second half adds support for microMIPS in all the necessary places.
The patch has been tested extensively in our QEMU tree; this patch has been tested against our compilers (GNU/Linux emulation), which include microMIPS support. We have obtained identical test results for MIPS32 and microMIPS testing. (The microMIPS patch for binutils has been posted upstream; the microMIPS patch for GCC is forthcoming.) It is possible to boot kernels compiled for microMIPS, but we have been unsuccessful in consistently being able to do so, and have not yet tracked down the root issue(s).
Nathan Froyd (10):
target-mips: break out [ls][wd]c1 and rdhwr insn generation
target-mips: add microMIPS-specific bits to mips-defs.h
target-mips: add enum constants for various invocations of FOP
target-mips: refactor {c,abs}.cond.fmt insns
target-mips: small changes to use new FMT_ enums
target-mips: add microMIPS ASE support
target-mips: add microMIPS CPUs
target-mips: add microMIPS exception handler support
linux-user: honor low bit of entry PC for MIPS
hw: honor low bit in mipssim machine
hw/mips_mipssim.c | 4 +- linux-user/main.c | 4 +- target-mips/cpu.h | 3 + target-mips/helper.c | 21 +- target-mips/helper.h | 9 + target-mips/mips-defs.h | 1 + target-mips/op_helper.c | 136 ++ target-mips/translate.c | 3050 ++++++++++++++++++++++++++++++++++++++---- target-mips/translate_init.c | 61 + 9 files changed, 3047 insertions(+), 242 deletions(-)