diff options
author | Saleem Abdulrasool <abdulras@google.com> | 2021-05-07 16:11:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 16:11:18 -0700 |
commit | e8d15a489fa76612707ff9e99feb0fb36acc9f14 (patch) | |
tree | b7dbe713c8a6595785a58c4102494a9abdee18a8 /machine/htif.c | |
parent | 5450c2f731f16abe3a4f244c383c55f559c97359 (diff) | |
download | riscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.zip riscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.tar.gz riscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.tar.bz2 |
machine: correct some additional cases of UB (#246)
Use of asm aliased register variables in local scope can only be used
for extended assembly parameters. This changes the few instances of
this in the floating point emulation to use the GNU extended assembly
syntax to access the `tp` register. This ensures that we do not rely on
undefined behaviour. This was uncovered when building the Proxy kernel
with clang and LLVM.
Diffstat (limited to 'machine/htif.c')
0 files changed, 0 insertions, 0 deletions