diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-06-23 12:34:37 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-05 10:08:35 -0400 |
commit | 9f730a60e5a046230cff8c9f4c8eb73f6dca7d81 (patch) | |
tree | 9d5b4804713cfbbd7da6fc182c084ddb9a7f37e9 /arch/mips/mm/uasm-mips.c | |
parent | 61c64cf99ae589af3835dbc9bb57200d4a4842ae (diff) |
MIPS: uasm: Add MTHI/MTLO instructions
Add MTHI/MTLO instructions for writing to the hi & lo registers to uasm
so that KVM can use uasm for generating its entry point code at runtime.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/mm/uasm-mips.c')
-rw-r--r-- | arch/mips/mm/uasm-mips.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mm/uasm-mips.c b/arch/mips/mm/uasm-mips.c index 2b7d85b8241f..86a3c76a1ad8 100644 --- a/arch/mips/mm/uasm-mips.c +++ b/arch/mips/mm/uasm-mips.c | |||
@@ -119,6 +119,8 @@ static struct insn insn_table[] = { | |||
119 | { insn_mflo, M(spec_op, 0, 0, 0, 0, mflo_op), RD }, | 119 | { insn_mflo, M(spec_op, 0, 0, 0, 0, mflo_op), RD }, |
120 | { insn_mtc0, M(cop0_op, mtc_op, 0, 0, 0, 0), RT | RD | SET}, | 120 | { insn_mtc0, M(cop0_op, mtc_op, 0, 0, 0, 0), RT | RD | SET}, |
121 | { insn_mthc0, M(cop0_op, mthc0_op, 0, 0, 0, 0), RT | RD | SET}, | 121 | { insn_mthc0, M(cop0_op, mthc0_op, 0, 0, 0, 0), RT | RD | SET}, |
122 | { insn_mthi, M(spec_op, 0, 0, 0, 0, mthi_op), RS }, | ||
123 | { insn_mtlo, M(spec_op, 0, 0, 0, 0, mtlo_op), RS }, | ||
122 | { insn_mul, M(spec2_op, 0, 0, 0, 0, mul_op), RS | RT | RD}, | 124 | { insn_mul, M(spec2_op, 0, 0, 0, 0, mul_op), RS | RT | RD}, |
123 | { insn_ori, M(ori_op, 0, 0, 0, 0, 0), RS | RT | UIMM }, | 125 | { insn_ori, M(ori_op, 0, 0, 0, 0, 0), RS | RT | UIMM }, |
124 | { insn_or, M(spec_op, 0, 0, 0, 0, or_op), RS | RT | RD }, | 126 | { insn_or, M(spec_op, 0, 0, 0, 0, or_op), RS | RT | RD }, |