target/openrisc: Split out is_user
commit2ba6541792782fc0d20dab6678f5f90a3c8978c9
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 May 2018 01:26:18 +0000 (22 18:26 -0700)
committerStafford Horne <shorne@gmail.com>
Mon, 2 Jul 2018 15:05:28 +0000 (3 00:05 +0900)
treea960450a3f5394ad52648837d1878fd82eaea1eb
parent8000ba56cc534dd917ae54f6ef0e898813c12b24
target/openrisc: Split out is_user

This allows us to limit the amount of ifdefs and isolate
the test for usermode.

Reviewed-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/translate.c