diff options
author | Richard Henderson <rth@twiddle.net> | 2015-02-18 16:26:01 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-02-14 08:15:00 +1100 |
commit | 20dc52a37c81b672a5239b20527335508bcea02e (patch) | |
tree | d51c408dc73bae8359e85621338986948f48e269 /target | |
parent | 9fba702bd4be03f1df156d4d60178c4badc8ff2d (diff) | |
download | qemu-20dc52a37c81b672a5239b20527335508bcea02e.zip qemu-20dc52a37c81b672a5239b20527335508bcea02e.tar.gz qemu-20dc52a37c81b672a5239b20527335508bcea02e.tar.bz2 |
target/openrisc: Enable trap, csync, msync, psync for user mode
Not documented as disabled for user mode.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target')
-rw-r--r-- | target/openrisc/translate.c | 32 |
1 files changed, 0 insertions, 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: |