target/riscv: Use target_ulong for the DisasContext misa
commit65d1a2bd3ec272bccdac29d4dc31c528a760cc3d
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 31 May 2021 04:27:14 +0000 (31 14:27 +1000)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 24 Jun 2021 12:00:12 +0000 (24 05:00 -0700)
treeee53a254decc506536cb5dde3befbf142962e817
parentd0ac9a61474cf594d19082bc8976247e984ea9a3
target/riscv: Use target_ulong for the DisasContext misa

The is_32bit() check in translate.c expects a 64-bit guest to have a
64-bit misa value otherwise the macro check won't work. This patches
fixes that and fixes a Coverity issue at the same time.

Fixes: CID 1453107
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: c00176c7518c2a7b4de3eec320b6a683ab56f705.1622435221.git.alistair.francis@wdc.com
target/riscv/translate.c