arch-riscv: use sext rather than manual masks
authorAlec Roelke <ar4jc@virginia.edu>
Wed, 29 Nov 2017 19:04:11 +0000 (14:04 -0500)
committerAlec Roelke <ar4jc@virginia.edu>
Thu, 30 Nov 2017 03:58:49 +0000 (03:58 +0000)
commit937ed3a0a26002bc5e015c23ecd805e4e32b2cca
tree51187af69c471a7ca82f5e94f142ef18fd507577
parentaed69fec188b8789675a4d3d1a712b42d4cf4f75
arch-riscv: use sext rather than manual masks

Replace manual creation of masks for sign extension of immediates with
the sext<N> function.

Change-Id: Ief2df91a25500c64f5bcae0dcd437c1e3bb95e6c
Reviewed-on: https://gem5-review.googlesource.com/6182
Reviewed-by: Alec Roelke <ar4jc@virginia.edu>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
src/arch/riscv/isa/bitfields.isa
src/arch/riscv/isa/formats/mem.isa
src/arch/riscv/isa/formats/standard.isa