projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08bef4
)
Adjust rocc_inst_t to properly extract fields due to the new ISA encoding.
author
Stephen Twigg
<sdtwigg@eecs.berkeley.edu>
Sun, 22 Sep 2013 09:21:13 +0000
(
02:21
-0700)
committer
Stephen Twigg
<sdtwigg@eecs.berkeley.edu>
Sun, 22 Sep 2013 09:24:07 +0000
(
02:24
-0700)
riscv/rocc.h
patch
|
blob
|
history
diff --git
a/riscv/rocc.h
b/riscv/rocc.h
index 6deccf8d9b6cd1539879e62149200139141d17d2..13980bb1b101261a28126cafc435a41609dd6a7b 100644
(file)
--- a/
riscv/rocc.h
+++ b/
riscv/rocc.h
@@
-6,13
+6,13
@@
struct rocc_insn_t
{
unsigned opcode : 7;
+ unsigned rd : 5;
unsigned xs2 : 1;
unsigned xs1 : 1;
unsigned xd : 1;
- unsigned funct : 7;
- unsigned rs2 : 5;
unsigned rs1 : 5;
- unsigned rd : 5;
+ unsigned rs2 : 5;
+ unsigned funct : 7;
};
class rocc_t : public extension_t