diff options
| author | Yongbok Kim | 2017-03-07 16:37:34 +0100 |
|---|---|---|
| committer | Yongbok Kim | 2017-03-20 12:19:14 +0100 |
| commit | 075a1fe788d36b271ec25507466c30b9a90b5d54 (patch) | |
| tree | ea4178c226e78e443db16bffe231a8121c1679ef /target/mips | |
| parent | target-mips: replace few LOG_DISAS() with trace points (diff) | |
| download | qemu-075a1fe788d36b271ec25507466c30b9a90b5d54.tar.gz qemu-075a1fe788d36b271ec25507466c30b9a90b5d54.tar.xz qemu-075a1fe788d36b271ec25507466c30b9a90b5d54.zip | |
target/mips: fix delay slot detection in gen_msa_branch()
It is unnecessary to test R6 from delay/forbidden slot check
in gen_msa_branch().
https://bugs.launchpad.net/qemu/+bug/1663287
Reported-by: Brian Campbell <bacam@z273.org.uk>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'target/mips')
| -rw-r--r-- | target/mips/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index 78b7264add..3022f349cb 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -18162,7 +18162,7 @@ static void gen_msa_branch(CPUMIPSState *env, DisasContext *ctx, uint32_t op1) check_msa_access(ctx); - if (ctx->insn_flags & ISA_MIPS32R6 && ctx->hflags & MIPS_HFLAG_BMASK) { + if (ctx->hflags & MIPS_HFLAG_BMASK) { generate_exception_end(ctx, EXCP_RI); return; } |
