aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-pinsn.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-01-02 23:09:53 +0000
committerJohn Gilmore <gnu@cygnus>1992-01-02 23:09:53 +0000
commit1a4d253ce71b22ffcc671d5d7c2edb27f9714ff8 (patch)
treebc27aa56e83e59dd62e8795b25e5b6a70a2dac65 /gdb/sparc-pinsn.c
parent1d4c28c5fadff5eebe66a4a64c6b480aa3a020d5 (diff)
downloadgdb-1a4d253ce71b22ffcc671d5d7c2edb27f9714ff8.zip
gdb-1a4d253ce71b22ffcc671d5d7c2edb27f9714ff8.tar.gz
gdb-1a4d253ce71b22ffcc671d5d7c2edb27f9714ff8.tar.bz2
Rename bitfields to avoid conflict with macro names in new opcode/sparc.h.
Diffstat (limited to 'gdb/sparc-pinsn.c')
-rw-r--r--gdb/sparc-pinsn.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/sparc-pinsn.c b/gdb/sparc-pinsn.c
index 36dad5a..ba2237b 100644
--- a/gdb/sparc-pinsn.c
+++ b/gdb/sparc-pinsn.c
@@ -34,29 +34,29 @@ union sparc_insn
unsigned long int code;
struct
{
- unsigned int OP:2;
-#define op ldst.OP
- unsigned int RD:5;
-#define rd ldst.RD
+ unsigned int anop:2;
+#define op ldst.anop
+ unsigned int anrd:5;
+#define rd ldst.anrd
unsigned int op3:6;
- unsigned int RS1:5;
-#define rs1 ldst.RS1
+ unsigned int anrs1:5;
+#define rs1 ldst.anrs1
unsigned int i:1;
- unsigned int ASI:8;
-#define asi ldst.ASI
- unsigned int RS2:5;
-#define rs2 ldst.RS2
+ unsigned int anasi:8;
+#define asi ldst.anasi
+ unsigned int anrs2:5;
+#define rs2 ldst.anrs2
#define shcnt rs2
} ldst;
struct
{
- unsigned int OP:2, RD:5, op3:6, RS1:5, i:1;
+ unsigned int anop:2, anrd:5, op3:6, anrs1:5, i:1;
unsigned int IMM13:13;
#define imm13 IMM13.IMM13
} IMM13;
struct
{
- unsigned int OP:2;
+ unsigned int anop:2;
unsigned int a:1;
unsigned int cond:4;
unsigned int op2:3;
@@ -66,9 +66,9 @@ union sparc_insn
#define imm22 disp22
struct
{
- unsigned int OP:2;
- unsigned int DISP30:30;
-#define disp30 call.DISP30
+ unsigned int anop:2;
+ unsigned int adisp30:30;
+#define disp30 call.adisp30
} call;
};