properly flushes pipeline after jump
This commit is contained in:
parent
c25b9bcb0f
commit
1290418aa3
4 changed files with 126 additions and 97 deletions
|
@ -201,7 +201,7 @@ _start:
|
|||
auipc x3, 0 # x3 = pc + 0
|
||||
auipc x4, 3 # x4 = pc + 0x3000
|
||||
auipc x5, 0xfffff # x5 = pc + 0xfffff000
|
||||
# TODO: verify auipc adds and does not concatenate
|
||||
# TODO: verify auipc adds and does not concatenate (must have PC>0xfff for this)
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
@ -221,7 +221,12 @@ loop:
|
|||
nop
|
||||
nop
|
||||
nop
|
||||
j loop # loop forever
|
||||
jal x1, loop # loop forever
|
||||
addi x2, x0, 0 # NOTE: this should never be executed
|
||||
addi x3, x0, 0 # NOTE: this should never be executed
|
||||
addi x4, x0, 0 # NOTE: this should never be executed
|
||||
addi x5, x0, 0 # NOTE: this should never be executed
|
||||
addi x6, x0, 0 # NOTE: this should never be executed
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
|
Loading…
Add table
Reference in a new issue