From cfc4a999828a5b51f4c514e3a7c47b4eebc450b9 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 24 Jan 2014 15:29:30 -0600 Subject: arch: Make all register index flattening const This patch makes all the register index flattening methods const for all the ISAs. As part of this, readMiscRegNoEffect for ARM is also made const. --- src/arch/power/isa.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch/power') diff --git a/src/arch/power/isa.hh b/src/arch/power/isa.hh index 028142b50..d19410037 100644 --- a/src/arch/power/isa.hh +++ b/src/arch/power/isa.hh @@ -87,26 +87,26 @@ class ISA : public SimObject } int - flattenIntIndex(int reg) + flattenIntIndex(int reg) const { return reg; } int - flattenFloatIndex(int reg) + flattenFloatIndex(int reg) const { return reg; } // dummy int - flattenCCIndex(int reg) + flattenCCIndex(int reg) const { return reg; } int - flattenMiscIndex(int reg) + flattenMiscIndex(int reg) const { return reg; } -- cgit v1.2.3