with hello world application & with metal library my assembly code on Hifive1 Rev B board,
csrr t0, mideleg; jalr x0, 0(ra);
jump into early trap vector due to access denial. I think this is due to user code accessing csr mideleg. Now, after reset it should be in machine mode, which code switches it into user?