OSDN Git Service

linux-user: Check type of microMIPS break instruction
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 10 Sep 2013 00:36:40 +0000 (17:36 -0700)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 24 Sep 2013 07:47:07 +0000 (10:47 +0300)
commit1308c464a8414ce3c6f79e172255fb90b5aa313d
tree80fe86f5fedcb2446e3d7318112b915b7b58b341
parentdbf4f7965af974593da596ec12ac877d248efed6
linux-user: Check type of microMIPS break instruction

microMIPS instructions that cause breakpoint exceptions come in
16-bit and 32-bit variants.  When handling exceptions caused by
such instructions, the instruction type needs to be taken into
account when extracting the break code.

The code has also been restructured for better clarity.

Signed-off-by: Kwok Cheung Yeung <kcy@codesourcery.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c