Moved GPR to back-end

This commit is contained in:
felsabbagh3
2019-10-14 19:08:32 -04:00
parent e67310acfb
commit ee83e6d8c8
26 changed files with 2320 additions and 2564 deletions

View File

@@ -6,6 +6,9 @@
.type _start, @function
.global _start
_start:
# li a1, 5
# jal Hi
# ecall
li a0, 8 # Num Warps
csrw 0x20, a0 # Setting the number of available warps
li a0, 4 # Num Threads
@@ -13,10 +16,16 @@ _start:
csrw mhartid,zero
csrw misa,zero
lui sp, 0x7ffff
jal vx_before_main
# jal vx_before_main
jal main
ecall
# Hi:
# li a2, 7
# nop
# nop
# ret
.type vx_createThreads, @function
.global vx_createThreads
vx_createThreads: