target/sh4: Unify code for CHECK_PRIVILEGED
commit6b98213da9b025dad0f1bd307928a4f30e96a50d
authorRichard Henderson <rth@twiddle.net>
Tue, 18 Jul 2017 20:02:44 +0000 (18 10:02 -1000)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 18 Jul 2017 21:39:17 +0000 (18 23:39 +0200)
tree92cb6ebf56c61ab94e80069b3da1edbd62f788b5
parentdec16c6ee8e665ec558f7564e68c09e01facf903
target/sh4: Unify code for CHECK_PRIVILEGED

We do not need to emit N copies of raising an exception.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-Id: <20170718200255.31647-20-rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target/sh4/translate.c