summaryrefslogtreecommitdiff
path: root/instruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'instruction.h')
-rw-r--r--instruction.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/instruction.h b/instruction.h
index 5a268d3..8d9c366 100644
--- a/instruction.h
+++ b/instruction.h
@@ -34,13 +34,10 @@ struct r_type {
* Some R-Type instructions embed a small immediate value in the
* low-order bits of OPX.
*/
- union {
- uint16_t opx11:11;
- struct {
- uint8_t imm5:5;
- uint8_t opx6:6;
- } __packed;
- } opx;
+ struct {
+ uint8_t imm5:5;
+ uint8_t opx6:6;
+ } __packed;
uint8_t c:5;
uint8_t b:5;
uint8_t a:5;