testing more compiler options

This commit is contained in:
Benjamin Kyd
2023-06-14 02:25:54 +01:00
parent 00920b2ecc
commit d880b8ed33
5 changed files with 6 additions and 3 deletions

View File

@@ -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),
};

View File

@@ -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();
}

View File

@@ -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 Executable file

Binary file not shown.

BIN
test/test.bin Executable file

Binary file not shown.