This commit is contained in:
felsabbagh3
2019-10-17 12:04:06 -04:00
parent 0bea82a2c3
commit 62db9ae691
5 changed files with 43 additions and 43 deletions

View File

@@ -6,30 +6,23 @@
.type _start, @function
.global _start
_start:
li a1, 2
nop
nop
nop
addi a2, a1, 0
nop
nop
nop
ecall
# li a0, 8 # Num Warps
# csrw 0x20, a0 # Setting the number of available warps
# li a0, 4 # Num Threads
# csrw 0x21, a0 # Setting the number of available threads
# csrw mhartid,zero
# csrw misa,zero
# lui sp, 0x7ffff
# # jal vx_before_main
# jal main
# li a0, 7
# sw a0, 0(zero)
# lw a1, 0(zero)
# ecall
li a0, 8 # Num Warps
csrw 0x20, a0 # Setting the number of available warps
li a0, 4 # Num Threads
csrw 0x21, a0 # Setting the number of available threads
csrw mhartid,zero
csrw misa,zero
lui sp, 0x7ffff
# jal vx_before_main
jal main
ecall
# Hi:
# li a2, 7
# nop
# nop
# ret
.type vx_createThreads, @function