Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204601
b: refs/heads/master
c: 2ea6399
h: refs/heads/master
i:
  204599: 3ac8873
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Aug 5, 2010
1 parent ce0f756 commit 5e9d9b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef771ad4ad59c88ffd1e313aa9e943751f83d3a2
refs/heads/master: 2ea6399f553bf9a47260723b44d50f747e310218
15 changes: 14 additions & 1 deletion trunk/arch/mips/include/asm/inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ struct ma_format { /* FPU multipy and add format (MIPS IV) */
unsigned int fmt : 2;
};

struct b_format { /* BREAK and SYSCALL */
unsigned int opcode:6;
unsigned int code:20;
unsigned int func:6;
};

#elif defined(__MIPSEL__)

struct j_format { /* Jump format */
Expand Down Expand Up @@ -314,6 +320,12 @@ struct ma_format { /* FPU multipy and add format (MIPS IV) */
unsigned int opcode : 6;
};

struct b_format { /* BREAK and SYSCALL */
unsigned int func:6;
unsigned int code:20;
unsigned int opcode:6;
};

#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
#endif
Expand All @@ -328,7 +340,8 @@ union mips_instruction {
struct c_format c_format;
struct r_format r_format;
struct f_format f_format;
struct ma_format ma_format;
struct ma_format ma_format;
struct b_format b_format;
};

/* HACHACHAHCAHC ... */
Expand Down

0 comments on commit 5e9d9b2

Please sign in to comment.