Fix for Single-Threaded

This commit is contained in:
felsabbagh3
2020-03-22 14:44:46 -07:00
parent 10ebfd7e24
commit 82ea79c680
16 changed files with 46894 additions and 46887 deletions

View File

@@ -1,9 +1,9 @@
COMP = riscv32-unknown-elf-gcc
COMP = /opt/riscv-new/drops/bin/riscv32-unknown-elf-gcc
CC_FLAGS = -march=rv32im -mabi=ilp32 -O0 -Wl,-Bstatic,-T,../vortex_link.ld -ffreestanding -nostdlib
DMP = riscv32-unknown-elf-objdump
CPY = riscv32-unknown-elf-objcopy
DMP = /opt/riscv-new/drops/bin/riscv32-unknown-elf-objdump
CPY = /opt/riscv-new/drops/bin/riscv32-unknown-elf-objcopy
NEWLIB = ../../newlib/newlib.c
@@ -13,7 +13,7 @@ VX_IO = ../../io/vx_io.s ../../io/vx_io.c
VX_API = ../../vx_api/vx_api.c
VX_TEST = ../../tests/tests.c
VX_FIO = ../../fileio/fileio.s
LIBS = ../../../../riscv-gnu-toolchain/drops/riscv32-unknown-elf/lib/libc.a ../../../../riscv-gnu-toolchain/drops/riscv32-unknown-elf/lib/libstdc++.a -static-libgcc -lgcc
LIBS = /opt/riscv-new/drops/riscv32-unknown-elf/lib/libc.a /opt/riscv-new/drops/riscv32-unknown-elf/lib/libstdc++.a -static-libgcc -lgcc
VX_MAIN = vx_simple_main

View File

@@ -52,6 +52,18 @@ int main()
// Main is called with all threads active of warp 0
vx_tmc(1);
vx_print_str("Let's start...\n");
unsigned what[36];
for (int i = 0; i < 36; i++)
{
what[i] = i;
}
for (int i = 0; i < 36; i++)
{
vx_printf("Value: ", what[i]);
}
vx_print_str("Simple Main\n");

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff