aboutsummaryrefslogtreecommitdiff
path: root/machine/muldiv_emulation.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <abdulras@google.com>2021-05-07 16:11:18 -0700
committerGitHub <noreply@github.com>2021-05-07 16:11:18 -0700
commite8d15a489fa76612707ff9e99feb0fb36acc9f14 (patch)
treeb7dbe713c8a6595785a58c4102494a9abdee18a8 /machine/muldiv_emulation.c
parent5450c2f731f16abe3a4f244c383c55f559c97359 (diff)
downloadriscv-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/muldiv_emulation.c')
0 files changed, 0 insertions, 0 deletions