Skip to content
Snippets Groups Projects
Commit 3d59b680 authored by David Morrison's avatar David Morrison Committed by Michael Tokarev
Browse files

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: default avatarDavid R. Morrison <dmorrison@invlim.com>
Acked-by: default avatarJia Liu <proljc@gmail.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent fac6688a
No related branches found
No related tags found
No related merge requests found
......@@ -1320,7 +1320,7 @@ static void dec_sys(DisasContext *dc, uint32_t insn)
#ifdef OPENRISC_DISAS
uint32_t K16;
#endif
op0 = extract32(insn, 16, 8);
op0 = extract32(insn, 16, 10);
#ifdef OPENRISC_DISAS
K16 = extract32(insn, 0, 16);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment