diff options
author | Alec Roelke <ar4jc@virginia.edu> | 2017-12-02 12:58:14 -0500 |
---|---|---|
committer | Alec Roelke <ar4jc@virginia.edu> | 2018-01-10 16:07:02 +0000 |
commit | e22894353869092c9da4977ec9ef74afa94cf57a (patch) | |
tree | b0a3df8042d1939818e54a7a473af8eed0364710 /src/arch/mips/dt_constants.hh | |
parent | 78524bda5606e1b60615f57ebd6bfe5bcdd71afb (diff) | |
download | gem5-e22894353869092c9da4977ec9ef74afa94cf57a.tar.xz |
arch-riscv: Make use of ImmOp's polymorphism
This patch makes use of ImmOp's polymorphism to remove unnecessary
casting from the implementations of arithmetic instructions with
immediate operands and to remove the CUIOp format by combining it with
the CIOp format (compressed arithmetic instructions with immediate
operands). Interestingly, RISC-V specifies that instructions with
unsigned immediate operands still need to sign-extend the immediates
from 12 (or 20) bits to 64 bits, so that is left alone.
Change-Id: If20d70c1e90f379b9ed8a4155b2b9222b6defe16
Reviewed-on: https://gem5-review.googlesource.com/6401
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Tuan Ta <qtt2@cornell.edu>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
Diffstat (limited to 'src/arch/mips/dt_constants.hh')
0 files changed, 0 insertions, 0 deletions