diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-09-22 21:53:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-09-22 21:53:14 +0000 |
commit | 775f1cf0c29d662e29905b5b06f0dc079ba10e5a (patch) | |
tree | fdb9d552936eb4129564847c847fd4098aea5696 /opcodes/bfin-dis.c | |
parent | 0b7691fd6ec26dfb326e9c35cf4c5b157d3998df (diff) | |
download | gdb-775f1cf0c29d662e29905b5b06f0dc079ba10e5a.zip gdb-775f1cf0c29d662e29905b5b06f0dc079ba10e5a.tar.gz gdb-775f1cf0c29d662e29905b5b06f0dc079ba10e5a.tar.bz2 |
opcodes: blackfin: mark push/pop insns with a P6/P7 range as illegal
The push/pop multiple insn has a 3 bit field for the P register range,
but only values of 0...5 are valid (P0 - P5). There is no such P6 or
P7 register, so mark these insns as illegal.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'opcodes/bfin-dis.c')
-rw-r--r-- | opcodes/bfin-dis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c index a510db1..0ce0ecf 100644 --- a/opcodes/bfin-dis.c +++ b/opcodes/bfin-dis.c @@ -936,6 +936,9 @@ decode_PushPopMultiple_0 (TIword iw0, disassemble_info *outf) int dr = ((iw0 >> PushPopMultiple_dr_bits) & PushPopMultiple_dr_mask); int pr = ((iw0 >> PushPopMultiple_pr_bits) & PushPopMultiple_pr_mask); + if (pr > 5) + return 0; + if (W == 1 && d == 1 && p == 1) { OUTS (outf, "[--SP] = (R7:"); |