target-microblaze: Break out trap_userspace()
commitbdfc1e886939f06b94f4fee3105a41dbd20a97db
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Fri, 13 Apr 2018 21:02:41 +0000 (13 23:02 +0200)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 29 May 2018 07:35:14 +0000 (29 09:35 +0200)
tree52038d875aed4514bcd12b1ec679c3a51755e7e5
parent0031eef23ac0850cb04f6932ba8c42d2d6e712f2
target-microblaze: Break out trap_userspace()

Break out trap_userspace() to avoid open coding it everywhere.
For privileged insns, we now always stop translation of the
current insn for cores without exceptions.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/microblaze/translate.c