riscv: Cast to float explicitly when comparing a float to an int.
authorGabe Black <gabeblack@google.com>
Mon, 10 Feb 2020 03:28:21 +0000 (19:28 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 10 Feb 2020 22:31:57 +0000 (22:31 +0000)
commitb82860cc988898a40a0e72b09b5d97701ae23b21
tree4af79d5444235462b5f0d9e10b5de2301dd14cc9
parented4482bda7f88e94e035418903abaf937f5e4f31
riscv: Cast to float explicitly when comparing a float to an int.

clang 11 complains that the int value is not represented exactly
otherwise which breaks the build. With this case the comparison is
still the same, but since it's explicit the compiler doesn't warn about
it.

Change-Id: I1d9ffc77e778517d9c6a985ae7aa6c4f1d5b57a2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25225
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Alec Roelke <alec.roelke@gmail.com>
Maintainer: Alec Roelke <alec.roelke@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/riscv/isa/decoder.isa