clean up some notes in test.S

This commit is contained in:
Brendan Haines 2020-11-07 00:54:50 -07:00
parent f6c0fb7da1
commit 06d0e07c61

View File

@ -1,11 +1,6 @@
.global _start .global _start
.text .text
_start: _start:
# NOTE: nop required because cpu currently does not detect when something is needed from a later stage of the pipeline.
# 4 clocks allows one instruction to finish before the next reads the regfile
# JAL
# JALR
# lui # lui
lui x1, 0xfedcb # x1 = 0xfedcb000 lui x1, 0xfedcb # x1 = 0xfedcb000
@ -137,7 +132,7 @@ _start:
auipc x3, 0 # x3 = pc + 0 auipc x3, 0 # x3 = pc + 0
auipc x4, 3 # x4 = pc + 0x3000 auipc x4, 3 # x4 = pc + 0x3000
auipc x5, 0xfffff # x5 = pc + 0xfffff000 auipc x5, 0xfffff # x5 = pc + 0xfffff000
# TODO: verify auipc adds and does not concatenate (must have PC>0xfff for this) # TODO: verify auipc adds and does not concatenate (must have PC>0xfff to test this)
# jal # jal
jal x1, test_jalr jal x1, test_jalr