target/microblaze: Add MFS Rd,EDR translation
commit7cdae31d3a654d6487727809b27dd8e88874fd50
authorTong Ho <tong.ho@xilinx.com>
Tue, 12 May 2020 14:36:49 +0000 (12 16:36 +0200)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 14 May 2020 11:44:36 +0000 (14 13:44 +0200)
treeafac2ea85793b64c41fdfc1aa71e09fb670548ef
parent6d0af39f81cd22c7d26fd00e262d722e0003014f
target/microblaze: Add MFS Rd,EDR translation

This is to fix cpu-abort with 'qemu: fatal: unknown mfs reg d'
(in the default case) when microblaze guest issues 'MFS Rd,EDR'
instruction.

Since embeddedsw release 2019.2, XPlm_ExceptionHandler() issues
the instruction on exception, and microblaze model aborts when
PLM firmware guest encounters an exception.

Signed-off-by: Tong Ho <tong.ho@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Message-Id: <20200512143649.21655-2-edgar.iglesias@gmail.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/microblaze/translate.c