[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 5/9] target/mips: Raise a RI when given fs is n/a
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PULL v2 5/9] target/mips: Raise a RI when given fs is n/a from CTC1 |
Date: |
Wed, 27 Jun 2018 20:29:05 +0200 |
From: Yongbok Kim <address@hidden>
Fix to raise a Reserved Instruction exception when given fs is not
available from CTC1.
Signed-off-by: Yongbok Kim <address@hidden>
Reviewed-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
target/mips/op_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c
index 9025f42..41d3634 100644
--- a/target/mips/op_helper.c
+++ b/target/mips/op_helper.c
@@ -2627,6 +2627,9 @@ void helper_ctc1(CPUMIPSState *env, target_ulong arg1,
uint32_t fs, uint32_t rt)
(env->active_fpu.fcr31 & ~(env->active_fpu.fcr31_rw_bitmask));
break;
default:
+ if (env->insn_flags & ISA_MIPS32R6) {
+ do_raise_exception(env, EXCP_RI, GETPC());
+ }
return;
}
restore_fp_status(env);
--
2.7.4
- [Qemu-devel] [PULL v2 0/9] MIPS queue 2018-06-27, Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 3/9] hw/mips/mips_malta: don't make bios region 'nomigrate', Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 7/9] target/mips: Update gen_flt_ldst(), Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 8/9] target/mips: Fix data type for offset, Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 2/9] hw/mips/boston: don't make flash region 'nomigrate', Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 4/9] hw/pci-host/xilinx-pcie: don't make "io" region be RAM, Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 9/9] target/mips: Fix gdbstub to read/write 64 bit FP registers, Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 5/9] target/mips: Raise a RI when given fs is n/a from CTC1,
Aleksandar Markovic <=
- [Qemu-devel] [PULL v2 1/9] MAINTAINERS: update target-mips maintainers, Aleksandar Markovic, 2018/06/27
- [Qemu-devel] [PULL v2 6/9] target/mips: Fix microMIPS on reset, Aleksandar Markovic, 2018/06/27
- Re: [Qemu-devel] [PULL v2 0/9] MIPS queue 2018-06-27, Peter Maydell, 2018/06/28