]> git.proxmox.com Git - mirror_qemu.git/commit - target/microblaze/translate.c
target/microblaze: Tidy raising of exceptions
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 21 Aug 2020 03:49:18 +0000 (20:49 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Sep 2020 14:41:38 +0000 (07:41 -0700)
commit41ba37c4778e9364348e4ffe448650ae5e4b3563
tree74e861a33867aa3609cd9b0017647af3f7c6b8b5
parentdbdb77c4df97205f9fbe1ec10ad35c1cb9729c12
target/microblaze: Tidy raising of exceptions

Split out gen_raise_exception which does no cpu state sync.
Rename t_gen_raise_exception to gen_raise_exception_sync to
emphasize that it does a sync.  Create gen_raise_hw_excp to
simplify code raising EXCP_HW_EXCP.

Since there is now only one use of cpu_esr, perform a store
instead and remove the TCG variable.

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