Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tachyonbeam
· 5y ago · 0 comments
Seems like a better design choice would be to have instruction 0x0 throw some kind of page fault violation or other exception the OS can catch then.
Comments
[–]
kindall
5y ago
Shades of the 6502, where 0 was BRK
[–]
FullyFunctional
5y ago
It is and on RISC-V 0 (16-bit bits and 32-bit) are an illegal instruction. Jumping to zeroed page is obviously a bug so this is the correct behavior.