]> git.proxmox.com Git - mirror_qemu.git/commit - target-openrisc/translate.c
target-openrisc: bugfix for dec_sys to decode instructions correctly
authorDavid Morrison <dmorrison@invlim.com>
Tue, 6 Jan 2015 17:06:18 +0000 (09:06 -0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 15 Jan 2015 07:44:13 +0000 (10:44 +0300)
commit3d59b6808bc5e0efbf1aee48d7f9ea96d19df05d
tree36b1f3b61ace900d5f9894de8785866d4d393c14
parentfac6688a18574b6f2caa8c699a936e729ed53ece
target-openrisc: bugfix for dec_sys to decode instructions correctly

Fixed the decoding of "system" instructions (starting with 0x2)
in dec_sys() in translate.c.  In particular, the l.trap instruction
is now correctly decoded, which enables for singlestepping and
breakpoints to be set in GDB.

Signed-off-by: David R. Morrison <dmorrison@invlim.com>
Acked-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target-openrisc/translate.c