target-mips: add mips16 support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 1 replyIn review
- v111 patches 6 repliesSuperseded
Changes in v2 from the cover letter
Fixed bug preventing Linux boot
Fixed usermode compilation error
Fixed confusion of delay slot size vs. branch size
Fixed bugs in PC-relative loads and adds
Moved mode bit from ISAMode field to hflags
Implemented extended I64 opcodes
Implemented LDPC instruction
Implemented DADDIUPC
64-bit MIPS16 instructions cause RI exceptions when not running in 64-bit mode
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | target-mips: add new HFLAGs for JALX and 16/32-bit delay slotstarget-mips/ | +28 | 0 replies | |
| 2/11 | target-mips: change interrupt bits to be mips16-awaretarget-mips/ target-mips/ | +44 | 0 replies | |
| 3/11 | target-mips: move ROTR and ROTRV inside gen_shift_{imm, }target-mips/ | +148 | 0 replies | |
| 4/11 | target-mips: make gen_compute_branch 16/32-bit-awaretarget-mips/ | +8 | 0 replies | |
| 5/11 | target-mips: add gen_base_offset_addrtarget-mips/ | +16 | 1 reply | |
| 6/11 | target-mips: split out delay slot handlingtarget-mips/ | +79 | 0 replies | |
| 7/11 | target-mips: add enums for MIPS16 opcodestarget-mips/ | +112 | 0 replies | |
| 8/11 | target-mips: add mips16 instruction decodingtarget-mips/ | +1063 | 0 replies | |
| 9/11 | gdbstub: add MIPS16 supportgdbstub.c | +15 | 0 replies | |
| 10/11 | target-mips: add copyright notice for mips16 worktarget-mips/ target-mips/ | +1 | 0 replies | |
| 11/11 | target-mips: set Config1.CA for MIPS16-aware CPUstarget-mips/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Qemu-devel] [PATCH v2 00/11] target-mips: add mips16 support
This patchset adds MIPS16 support to the MIPS backend. MIPS16 is a compact encoding of a subset of the MIPS integer instructions, similar to ARM's Thumb mode. Mode switching occurs when either a special instruction (JALX) is executed, or when a jump-to-register instruction is executed; the instruction mode for the target PC is indicated by the low bit of the register.
The patches have been tested with GCC's testsuite and GDB's testsuite.
Changes from v1:
Fixed bug preventing Linux boot
Fixed usermode compilation error
Fixed confusion of delay slot size vs. branch size
Fixed bugs in PC-relative loads and adds
Moved mode bit from ISAMode field to hflags
Implemented extended I64 opcodes
Implemented LDPC instruction
Implemented DADDIUPC
64-bit MIPS16 instructions cause RI exceptions when not running in 64-bit mode
(This is required; see section 1.5 of MIPS16e 64-bit spec: MD00077.)
Deleted MIPS16 ASE from TODO
Flipped Config1.CA bit for appropriate CPUs
-Nathan