bugs!
This commit is contained in:
parent
5b70725917
commit
9d7d84c7f8
|
@ -259,6 +259,10 @@ public:
|
||||||
aux |= m_instr[6] << 7;
|
aux |= m_instr[6] << 7;
|
||||||
aux |= m_instr.range(5,3) << 1;
|
aux |= m_instr.range(5,3) << 1;
|
||||||
aux |= m_instr[2] << 5;
|
aux |= m_instr[2] << 5;
|
||||||
|
|
||||||
|
if (m_instr[12] == 1) {
|
||||||
|
aux |= 0b1111 << 12;
|
||||||
|
}
|
||||||
|
|
||||||
return aux;
|
return aux;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ void Execute::AUIPC(Instruction &inst) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Execute::JAL(Instruction &inst, bool c_extension, int m_rd) {
|
void Execute::JAL(Instruction &inst, bool c_extension, int m_rd) {
|
||||||
int32_t mem_addr = 0;
|
int16_t mem_addr = 0;
|
||||||
int rd;
|
int rd;
|
||||||
int new_pc, old_pc;
|
int new_pc, old_pc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue