Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8fba1e58
Commit
8fba1e58
authored
Jan 17, 2013
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: inst.h: Add MDMX and paired single instruction aka MIPS-3D formats.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
85dfaf08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
arch/mips/include/uapi/asm/inst.h
arch/mips/include/uapi/asm/inst.h
+23
-0
No files found.
arch/mips/include/uapi/asm/inst.h
View file @
8fba1e58
...
@@ -290,6 +290,27 @@ struct b_format { /* BREAK and SYSCALL */
...
@@ -290,6 +290,27 @@ struct b_format { /* BREAK and SYSCALL */
;)))
;)))
};
};
struct
ps_format
{
/* MIPS-3D / paired single format */
BITFIELD_FIELD
(
unsigned
int
opcode
:
6
,
BITFIELD_FIELD
(
unsigned
int
rs
:
5
,
BITFIELD_FIELD
(
unsigned
int
ft
:
5
,
BITFIELD_FIELD
(
unsigned
int
fs
:
5
,
BITFIELD_FIELD
(
unsigned
int
fd
:
5
,
BITFIELD_FIELD
(
unsigned
int
func
:
6
,
;))))))
};
struct
v_format
{
/* MDMX vector format */
BITFIELD_FIELD
(
unsigned
int
opcode
:
6
,
BITFIELD_FIELD
(
unsigned
int
sel
:
4
,
BITFIELD_FIELD
(
unsigned
int
fmt
:
1
,
BITFIELD_FIELD
(
unsigned
int
vt
:
5
,
BITFIELD_FIELD
(
unsigned
int
vs
:
5
,
BITFIELD_FIELD
(
unsigned
int
vd
:
5
,
BITFIELD_FIELD
(
unsigned
int
func
:
6
,
;)))))))
};
union
mips_instruction
{
union
mips_instruction
{
unsigned
int
word
;
unsigned
int
word
;
unsigned
short
halfword
[
2
];
unsigned
short
halfword
[
2
];
...
@@ -303,6 +324,8 @@ union mips_instruction {
...
@@ -303,6 +324,8 @@ union mips_instruction {
struct
f_format
f_format
;
struct
f_format
f_format
;
struct
ma_format
ma_format
;
struct
ma_format
ma_format
;
struct
b_format
b_format
;
struct
b_format
b_format
;
struct
ps_format
ps_format
;
struct
v_format
v_format
;
};
};
#endif
/* _UAPI_ASM_INST_H */
#endif
/* _UAPI_ASM_INST_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment