target/microblaze: Diagnose invalid insns in delay slots
commit2a7567a2f3a2f2d1580f104efd7ddc67e598b071
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Sep 2020 18:42:08 +0000 (1 11:42 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Sep 2020 19:58:08 +0000 (7 12:58 -0700)
tree5097a9c22ae918e4e2c42497f1f7be6bfd8129bd
parent4059bd90eb29fb837636db278d6907f4df0f6158
target/microblaze: Diagnose invalid insns in delay slots

These cases result in undefined and undocumented behaviour but the
behaviour is deterministic, i.e cores will not lock-up or expose
security issues.  However, RTL will not raise exceptions either.

Therefore, log a GUEST_ERROR and treat these cases as nops, to
avoid corner cases which could put qemu into an invalid state.

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