Corrects critical mistake where core tried to bypass even if previous instruction did not write-back

This commit is contained in:
2025-11-15 00:57:59 +01:00
parent 0c377a1380
commit e35f2a4242
8 changed files with 75 additions and 62 deletions

View File

@@ -1,12 +1,17 @@
# expected: FFFFFFFFFFFFF1BC, FFFFFFFFFFFFF1BC
# expected: FFFFFFFFFFFFCDEF, FFFFFFFFFFFF89AB, 4567, 0123
.text
_start:
lui x1, 0xF
ori x1, x1, 0x1BC
sh x1, 100(x0)
lh x31, 100(x0)
li x2, 0x10100
li x1, 0x0123456789ABCDEF
sd x1, 0(x2)
lh x31, 0(x2)
lh x31, 2(x2)
lh x31, 4(x2)
lh x31, 6(x2)
lui x1, 0xF
ori x1, x1, 0x1BC
sh x1, 106(x0)
lh x31, 106(x0)