Fix build error on RISC-V.
PR: 250915 Submitted by: kp, Yasuhiro KIMURA <yasu@utahime.org> Reported by: Dennis Clarke <dclarke@blastwave.org>