From 36646a182e4481406c791c17939b919965aca51a Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Thu, 8 Nov 2018 18:55:47 +0100 Subject: [PATCH] buf, intermediate value whould be 32 bits long --- src/Execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Execute.cpp b/src/Execute.cpp index b99703e..25b4435 100644 --- a/src/Execute.cpp +++ b/src/Execute.cpp @@ -39,7 +39,7 @@ void Execute::AUIPC(Instruction &inst) { } void Execute::JAL(Instruction &inst, bool c_extension, int m_rd) { - int16_t mem_addr = 0; + int32_t mem_addr = 0; int rd; int new_pc, old_pc;