OSDN Git Service

target-lm32: stop VM on illegal or unknown instruction
authorMichael Walle <michael@walle.cc>
Mon, 23 Sep 2013 18:47:33 +0000 (20:47 +0200)
committerMichael Walle <michael@walle.cc>
Tue, 4 Feb 2014 18:47:39 +0000 (19:47 +0100)
commit667ff9612b786f9bb5b70135811164b48b7d44eb
tree82e7dffb9c98421b72a4ae48772bc4b51eed307d
parent8c5edce5b775f98cff2e340427740137bd6847be
target-lm32: stop VM on illegal or unknown instruction

Instead of translating the instruction to a no-op, pause the VM and display
a message to the user.

As a side effect, this also works for instructions where the operands are
only known at runtime.

Signed-off-by: Michael Walle <michael@walle.cc>
target-lm32/helper.h
target-lm32/op_helper.c
target-lm32/translate.c