[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/7] tcg/mips: Minimal R6 support
From: |
James Hogan |
Subject: |
[Qemu-devel] [PATCH 0/7] tcg/mips: Minimal R6 support |
Date: |
Wed, 30 Sep 2015 16:30:20 +0100 |
This patchset adds minimal MIPS r6 host support to TCG.
The first two patches are things I've noticed along the way, and are
independent of the other patches.
Patches 3-7 add R6 awareness to the most important operations, such that
instructions removed in R6 don't get emitted. This seems to be enough to
get a MIPS Linux guest booting on a MIPSr6 host (such as QEMU or I6400).
There are no doubt other improvements that could be made to better
utilise new R6 instruction encodings, but that can wait until a later
patchset.
The changes are basically:
- Patch 4: Don't use the MIPSr5 JR encoding (r6 uses JALR with rd=zero).
- Patch 5: Don't use LO/HI registers, instead using the new
multiply/divide encodings, which map nicely to TCG ops anyway.
- Patch 6-7: Don't use MOVN/MOVZ instructions. Instead use
SELEQZ/SELNEZ.
James Hogan (7):
tcg-opc.h: Simplify debug_insn_start def
disas/mips: Add R6 jr/jr.hb to disassembler
tcg/mips: Add use_mips32r6_instructions definition
tcg/mips: Support r6 JR encoding
tcg/mips: Support r6 multiply/divide encodings
tcg/mips: Support full movcond select operation
tcg/mips: Support r6 SEL{NE,EQ}Z instead of MOVN/MOVZ
disas/mips.c | 2 ++
tcg/mips/tcg-target.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++-----
tcg/mips/tcg-target.h | 11 +++++--
tcg/tcg-opc.h | 12 +++----
4 files changed, 93 insertions(+), 18 deletions(-)
Cc: Aurelien Jarno <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Leon Alrae <address@hidden>
--
2.4.9
- [Qemu-devel] [PATCH 0/7] tcg/mips: Minimal R6 support,
James Hogan <=
- [Qemu-devel] [PATCH 7/7] tcg/mips: Support r6 SEL{NE, EQ}Z instead of MOVN/MOVZ, James Hogan, 2015/10/08
- [Qemu-devel] [PATCH 3/7] tcg/mips: Add use_mips32r6_instructions definition, James Hogan, 2015/10/08
- [Qemu-devel] [PATCH 2/7] disas/mips: Add R6 jr/jr.hb to disassembler, James Hogan, 2015/10/08
- [Qemu-devel] [PATCH 5/7] tcg/mips: Support r6 multiply/divide encodings, James Hogan, 2015/10/08
- [Qemu-devel] [PATCH 4/7] tcg/mips: Support r6 JR encoding, James Hogan, 2015/10/08