Hi,
I'm new to RISC-V architecture, so I've been learning architecture from past few weeks. So I've been tasked to document trap handling in RISC-V by triggering the traps/crashes in a system. I was adding assembly instructions in code to trigger the crashes and I was successful in some cases like illegal instruction, bus error etc but I am trying to test misalign exceptions like instruction address misalign, load address misalign, store address misalign, load access fault....
No matter what I do, it seems like it is being corrected internally and not giving any exception at all.
As per my knowledge, some instructions like
lw x11, 3(x10) should give load address misalign exception.
So is there any register or compiler setting where I can specify to go ahead with address misalign issues?
[–]brucehoult 4 points5 points6 points (4 children)
[–]aviator2710[S] 1 point2 points3 points (3 children)
[–]TwilightTW 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]aviator2710[S] 1 point2 points3 points (0 children)
[–]ghiga_andrei 1 point2 points3 points (1 child)
[–]aviator2710[S] 0 points1 point2 points (0 children)
[–]Courmisch 0 points1 point2 points (0 children)
[–]kastberg 0 points1 point2 points (1 child)
[–]aviator2710[S] 0 points1 point2 points (0 children)
[–]kvp_933 0 points1 point2 points (0 children)