#
70dffce5 |
| 17-May-2024 |
riastradh <riastradh@NetBSD.org> |
riscv: Make feraiseexcept actually raise the given exceptions.
Doing
fexcept_t ex = 0; fesetexceptflag(&ex, excepts);
has the effect of _clearing_ all the exceptions in excepts. Using fesetexce
riscv: Make feraiseexcept actually raise the given exceptions.
Doing
fexcept_t ex = 0; fesetexceptflag(&ex, excepts);
has the effect of _clearing_ all the exceptions in excepts. Using fesetexceptflag doesn't make this easier, because we would have to record which exceptions were already raised. So just set the fflags bits in the fcsr register directly.
show more ...
|