Changed hierarchy + Identified private + public modules

This commit is contained in:
felsabbagh3
2019-05-07 23:45:05 -07:00
parent 191ed73415
commit 79356c7ab1
20 changed files with 2602 additions and 694 deletions

View File

@@ -1,13 +1,13 @@
# COMP = /opt/riscv/bin/riscv32-unknown-elf-gcc
COMP = /opt/riscv/bin/riscv32-unknown-linux-gnu-gcc
COMP = /opt/riscv/bin/riscv32-unknown-elf-gcc
# COMP = /opt/riscv/bin/riscv32-unknown-linux-gnu-gcc
CC_FLAGS = -march=rv32im -mabi=ilp32 -O0 -Wl,-Bstatic,-T,linker.ld -ffreestanding -nostdlib
# DMP = /opt/riscv/bin/riscv32-unknown-elf-objdump
# CPY = /opt/riscv/bin/riscv32-unknown-elf-objcopy
DMP = /opt/riscv/bin/riscv32-unknown-elf-objdump
CPY = /opt/riscv/bin/riscv32-unknown-elf-objcopy
DMP = /opt/riscv/bin/riscv32-unknown-linux-gnu-objdump
CPY = /opt/riscv/bin/riscv32-unknown-linux-gnu-objcopy
# DMP = /opt/riscv/bin/riscv32-unknown-linux-gnu-objdump
# CPY = /opt/riscv/bin/riscv32-unknown-linux-gnu-objcopy
VX_LIB = ./vx_os/vx_back/vx_back.s ./vx_os/vx_back/vx_back.c ./vx_os/vx_util/queue.s
VX_IO = ./vx_os/vx_io/vx_io.s ./vx_os/vx_io/vx_io.c

View File

@@ -7,7 +7,7 @@ Disassembly of section .text:
80000000 <_start>:
80000000: 00100513 li a0,1
80000004: 02051073 csrw 0x20,a0
80000008: 00100513 li a0,1
80000008: 00200513 li a0,2
8000000c: 02151073 csrw 0x21,a0
80000010: f1401073 csrw mhartid,zero
80000014: 30101073 csrw misa,zero

Binary file not shown.

View File

@@ -1,5 +1,5 @@
:0200000480007A
:10000000130510007310050213051000731015027C
:10000000130510007310050213052000731015026C
:10001000731040F17310103037F1FF7FEF0080193B
:10002000EF10C06D73000000938B0600130D0700E6
:10003000130F01009303050013051000635C7500A6

View File

@@ -8,7 +8,7 @@
_start:
li a0, 1 # Num Warps
csrw 0x20, a0 # Setting the number of available warps
li a0, 1 # Num Threads
li a0, 2 # Num Threads
csrw 0x21, a0 # Setting the number of available threads
csrw mhartid,zero
csrw misa,zero