aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-07-04 05:47:22 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-07-04 05:47:22 +0000
commit6eeeb4b407087796bb77d7823af613e1ad3e8183 (patch)
tree3625f4251e5250b2c04741242f650b264b5ed5b9 /opcodes/arm-dis.c
parente62263b8ecdd0439a7220068e5ae734ce1459149 (diff)
downloadgdb-6eeeb4b407087796bb77d7823af613e1ad3e8183.zip
gdb-6eeeb4b407087796bb77d7823af613e1ad3e8183.tar.gz
gdb-6eeeb4b407087796bb77d7823af613e1ad3e8183.tar.bz2
* arm-dis.c (print_insn_arm): Output combinations of PSR flags.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c30
1 files changed, 9 insertions, 21 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 4c6552e..0ddcffa 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -422,27 +422,15 @@ print_insn_arm (pc, info, given)
break;
case 'C':
- switch (given & 0x000f0000)
- {
- default:
- func (stream, "_???");
- break;
- case 0x90000:
- func (stream, "_all");
- break;
- case 0x10000:
- func (stream, "_c");
- break;
- case 0x20000:
- func (stream, "_x");
- break;
- case 0x40000:
- func (stream, "_s");
- break;
- case 0x80000:
- func (stream, "_f");
- break;
- }
+ func (stream, "_");
+ if (given & 0x80000)
+ func (stream, "f");
+ if (given & 0x40000)
+ func (stream, "s");
+ if (given & 0x20000)
+ func (stream, "x");
+ if (given & 0x10000)
+ func (stream, "c");
break;
case 'F':