riscv: Define register index constants using literals
authorAlec Roelke <ar4jc@virginia.edu>
Fri, 14 Jul 2017 22:09:06 +0000 (18:09 -0400)
committerAlec Roelke <ar4jc@virginia.edu>
Mon, 17 Jul 2017 14:59:58 +0000 (14:59 +0000)
commitd2ab7234685bd8c007d10a525f67265a1fcb5fa4
tree4419dbce45192abe339c5f228272a3cf0b96798c
parentdbeeb9693c8ab364fca7cf01817c9628252af652
riscv: Define register index constants using literals

To make it clearer what the register indices are for the semantically
meaningful registers defined by src/arch/riscv/registers.hh, the
constants that were defined using other constants were changed to use
the literal values of those constants.  This also removes the need to
use the M5_VAR_USED attribute.

Change-Id: I7cccbe45d3d820deb5149a5925415735f6ae2e61
Reviewed-on: https://gem5-review.googlesource.com/4080
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
src/arch/riscv/registers.hh