testing more compiler options
This commit is contained in:
@@ -91,6 +91,9 @@ impl CPU {
|
||||
_ => println!("VM > INST {:03b} not implemented", inst.funct3()),
|
||||
}
|
||||
}
|
||||
inst::S_TYPE => {
|
||||
println!("VM > OPCODE S TYPE not implemented");
|
||||
}
|
||||
_ => println!("VM > OPCODE {:08b} not implemented", opcode),
|
||||
};
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ fn main() {
|
||||
println!("VM Starting Up");
|
||||
|
||||
let mut vm = VMRV32I::new();
|
||||
vm.load_prog("./test/add.bin");
|
||||
vm.load_prog("./test/test.bin");
|
||||
vm.dump_prog();
|
||||
vm.dispatch();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
GCC_COMPILER=riscv32-unknown-elf-gcc
|
||||
GCC_OBJCOPY=riscv32-unknown-elf-objcopy
|
||||
|
||||
all: build
|
||||
all: bin
|
||||
|
||||
assemble:
|
||||
$(GCC_COMPILER) -S test.c
|
||||
@@ -9,7 +9,7 @@ assemble:
|
||||
build:
|
||||
$(GCC_COMPILER) -Wl,-Ttext=0x0 -nostdlib -march=rv64i -mabi=lp64 -o test test.S
|
||||
|
||||
bin:
|
||||
bin: build
|
||||
$(GCC_OBJCOPY) -O binary test test.bin
|
||||
|
||||
clean:
|
||||
|
||||
BIN
test/test.bin
Executable file
BIN
test/test.bin
Executable file
Binary file not shown.
Reference in New Issue
Block a user