typos 6 minor changes
This commit is contained in:
parent
36646a182e
commit
1fcbcf500b
|
@ -168,7 +168,7 @@ typedef enum {
|
|||
/**
|
||||
* @brief Instruction decoding and fields access
|
||||
*/
|
||||
class Instruction{
|
||||
class Instruction {
|
||||
public:
|
||||
|
||||
/**
|
||||
|
@ -329,6 +329,7 @@ public:
|
|||
m_instr.range(11,7) = aux.range(4,1);
|
||||
m_instr[6] = aux[11];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Access to immediate field for J-type
|
||||
* @return immediate_J field
|
||||
|
@ -345,6 +346,7 @@ public:
|
|||
if (m_instr[31] == 1) {
|
||||
aux |= (0b111111111111) << 20;
|
||||
}
|
||||
|
||||
return aux;
|
||||
}
|
||||
|
||||
|
|
|
@ -310,7 +310,7 @@ void CPU::CPU_thread(void) {
|
|||
exec->NOP(inst);
|
||||
} // switch (inst.check_extension())
|
||||
}
|
||||
|
||||
|
||||
perf->instructionsInc();
|
||||
|
||||
if (PC_not_affected == true) {
|
||||
|
|
|
@ -5,13 +5,13 @@ TARGET_ARCH=riscv32
|
|||
CC = riscv32-unknown-linux-gnu-gcc
|
||||
# compiling flags here
|
||||
#CFLAGS = -Wall -I. -O0 -nostdlib -march=rv32i -mabi=ilp32 --entry main
|
||||
#CFLAGS = -Wall -I. -O0
|
||||
CFLAGS = -Wall -I. -O0 -Xlinker --gc-sections -lgcc -lc -static
|
||||
CFLAGS = -Wall -I. -O0 -static
|
||||
#CFLAGS = -Wall -I. -O0 -Xlinker --gc-sections -lgcc -lc -static --specs=nano.specs
|
||||
|
||||
|
||||
LINKER = riscv32-unknown-linux-gnu-gcc
|
||||
# linking flags here
|
||||
LFLAGS = -I. --entry main
|
||||
LFLAGS = -I. --entry main -L/opt/riscv/riscv32-unknown-elf/lib/
|
||||
LIBS = $(EXTRA_LIBS)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue