[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/22] target/openrisc: Enable trap, csync, msync, p
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 15/22] target/openrisc: Enable trap, csync, msync, psync for user mode |
Date: |
Wed, 8 Feb 2017 20:51:47 -0800 |
Not documented as disabled for user mode.
Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/openrisc/translate.c | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c
index f91ab6a..6c8f05c 100644
--- a/target/openrisc/translate.c
+++ b/target/openrisc/translate.c
@@ -1134,52 +1134,20 @@ static void dec_sys(DisasContext *dc, uint32_t insn)
case 0x100: /* l.trap */
LOG_DIS("l.trap %d\n", K16);
-#if defined(CONFIG_USER_ONLY)
- return;
-#else
- if (dc->mem_idx == MMU_USER_IDX) {
- gen_illegal_exception(dc);
- return;
- }
tcg_gen_movi_tl(cpu_pc, dc->pc);
gen_exception(dc, EXCP_TRAP);
-#endif
break;
case 0x300: /* l.csync */
LOG_DIS("l.csync\n");
-#if defined(CONFIG_USER_ONLY)
- return;
-#else
- if (dc->mem_idx == MMU_USER_IDX) {
- gen_illegal_exception(dc);
- return;
- }
-#endif
break;
case 0x200: /* l.msync */
LOG_DIS("l.msync\n");
-#if defined(CONFIG_USER_ONLY)
- return;
-#else
- if (dc->mem_idx == MMU_USER_IDX) {
- gen_illegal_exception(dc);
- return;
- }
-#endif
break;
case 0x270: /* l.psync */
LOG_DIS("l.psync\n");
-#if defined(CONFIG_USER_ONLY)
- return;
-#else
- if (dc->mem_idx == MMU_USER_IDX) {
- gen_illegal_exception(dc);
- return;
- }
-#endif
break;
default:
--
2.9.3
- Re: [Qemu-devel] [PATCH 06/22] target/openrisc: Tidy insn dumping, (continued)
- [Qemu-devel] [PATCH 07/22] target/openrisc: Rationalize immediate extraction, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 08/22] target/openrisc: Streamline arithmetic and OVE, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 09/22] target/openrisc: Put SR[OVE] in TB flags, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 10/22] target/openrisc: Invert the decoding in dec_calc, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 12/22] target/openrisc: Keep SR_CY and SR_OV in a separate variables, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 13/22] target/openrisc: Use movcond where appropriate, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 14/22] target/openrisc: Set flags on helpers, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 11/22] target/openrisc: Keep SR_F in a separate variable, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 15/22] target/openrisc: Enable trap, csync, msync, psync for user mode,
Richard Henderson <=
- [Qemu-devel] [PATCH 16/22] target/openrisc: Implement msync, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 17/22] target/openrisc: Represent MACHI:MACLO as a single unit, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 18/22] target/openrisc: Implement muld, muldu, macu, msbu, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 19/22] target/openrisc: Fix madd, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 20/22] target/openrisc: Optimize l.jal to next, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 21/22] target/openrisc: Tidy ppc/npc implementation, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 22/22] target/openrisc: Tidy handling of delayed branches, Richard Henderson, 2017/02/08
- [Qemu-devel] [PATCH 23/22] linux-user: Honor CLONE_SETTLS for openrisc, Richard Henderson, 2017/02/09