target/sparc/int32_helper: Extract and use excp_name_str()
commit86e8c353f705f14f2f2fd7a6195cefa431aa24d9
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 31 Mar 2020 09:49:11 +0000 (31 11:49 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 9 Jun 2020 07:21:10 +0000 (9 09:21 +0200)
treedbe867f4f2996c13d65cac9bbd67e32b49b0448c
parent304c1c8aa5e948ea11aa64acca0e485a185cedc9
target/sparc/int32_helper: Extract and use excp_name_str()

Improve exception error report:

Before:

  qemu: fatal: Trap 0x06 while interrupts disabled, Error state

After:

  qemu: fatal: Trap 0x06 (Window Underflow) while interrupts disabled, Error state

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Message-Id: <20200331105048.27989-8-f4bug@amsat.org>
target/sparc/int32_helper.c