summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--risc-v/hgen/parser.hgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/risc-v/hgen/parser.hgen b/risc-v/hgen/parser.hgen
index ba780857..8bb8ae2b 100644
--- a/risc-v/hgen/parser.hgen
+++ b/risc-v/hgen/parser.hgen
@@ -15,7 +15,7 @@
| LOAD reg COMMA NUM LPAR reg RPAR
{ `RISCVLoad($4, $6, $2, $1.unsigned, $1.width) }
| STORE reg COMMA NUM LPAR reg RPAR
- { `RISCVStore($4, $6, $2, $1.width) }
+ { `RISCVStore($4, $2, $6, $1.width) }
| ADDIW reg COMMA reg COMMA NUM
{ `RISCVADDIW ($6, $4, $2) }
| SHIFTW reg COMMA reg COMMA NUM