riscv: Add unused attribute to some registers.hh constants
authorAlec Roelke <ar4jc@virginia.edu>
Thu, 13 Jul 2017 20:26:53 +0000 (16:26 -0400)
committerAlec Roelke <ar4jc@virginia.edu>
Fri, 14 Jul 2017 20:29:09 +0000 (20:29 +0000)
commitd72eafa64b4313f30f4c7a25000ff04f5cf30380
treeb998acd6480a8186afce1bbbcfefb0c5df06216a
parentc473bdb8916528be4ff896c5e9378e6200f68939
riscv: Add unused attribute to some registers.hh constants

Three of the constants defined in arch/riscv/registers.hh
(ReturnValueReg, SyscallNumReg, and SyscallPseudoReturnReg) may cause
the compiler to warn that they are unused, which results in an error.
This patch adds M5_VAR_USED attributes to them to stop this.

Change-Id: Ie6389a55e8ffb3d003a47d02e76bdf9fb5219457
Reviewed-on: https://gem5-review.googlesource.com/4040
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
src/arch/riscv/registers.hh