target/mips: Also display exception names in user-mode
commit90c429ee765ec6ca2e2384edc9e45b4ddfae9adb
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 18 Nov 2020 16:47:29 +0000 (18 17:47 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 13 Dec 2020 18:58:54 +0000 (13 19:58 +0100)
treea647e92766da6bf7436eb9bd6b19e129320cca9c
parent5777c8a905d5aa35d5308a6785c9d9b60cd498cc
target/mips: Also display exception names in user-mode

Currently MIPS exceptions are displayed as string in system-mode
emulation, but as number in user-mode.
Unify by extracting the current system-mode code as excp_name()
and use that in user-mode.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201119160536.1980329-1-f4bug@amsat.org>
target/mips/helper.c