Fix AUIPC/LUI opcode mismatch.

This commit is contained in:
peteraa 2019-09-06 13:55:47 +02:00
parent c82013581d
commit 2f2f20c075

View file

@ -149,8 +149,8 @@ object assembler {
case x: SW => setOpCode("0100011".binary) case x: SW => setOpCode("0100011".binary)
case x: JALR => setOpCode("1100111".binary) case x: JALR => setOpCode("1100111".binary)
case x: JAL => setOpCode("1101111".binary) case x: JAL => setOpCode("1101111".binary)
case x: AUIPC => setOpCode("0110111".binary) case x: AUIPC => setOpCode("0010111".binary)
case x: LUI => setOpCode("0010111".binary) case x: LUI => setOpCode("0110111".binary)
case DONE => setOpCode("0010011".binary) // done is turned into a NOP in the assembler. case DONE => setOpCode("0010011".binary) // done is turned into a NOP in the assembler.
} }