mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/microblaze: Add the opcode-0x0-illegal CPU property
Add the opcode-0x0-illegal CPU property to control if the core should trap opcode zero as illegal. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Luc Michel <luc.michel@greensocs.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
648db19685
commit
1ee1bd28fc
3 changed files with 7 additions and 2 deletions
|
@ -1573,7 +1573,7 @@ static inline void decode(DisasContext *dc, uint32_t ir)
|
|||
LOG_DIS("%8.8x\t", dc->ir);
|
||||
|
||||
if (ir == 0) {
|
||||
trap_illegal(dc, dc->cpu->env.pvr.regs[2] & PVR2_OPCODE_0x0_ILL_MASK);
|
||||
trap_illegal(dc, dc->cpu->cfg.opcode_0_illegal);
|
||||
/* Don't decode nop/zero instructions any further. */
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue