changeset c1375b05faf1 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=c1375b05faf1
description:
        Power: Fix MaxMiscDestRegs which was set to zero

        This patch fixes a failing compilation caused by MaxMiscDestRegs being
        zero. According to gcc 4.6, the result is a comparison that is always
        false due to limited range of data type.

diffstat:

 src/arch/power/registers.hh |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r d43eb1203aec -r c1375b05faf1 src/arch/power/registers.hh
--- a/src/arch/power/registers.hh       Thu Jun 07 17:03:45 2012 -0500
+++ b/src/arch/power/registers.hh       Fri Jun 08 12:44:17 2012 -0400
@@ -38,7 +38,10 @@
 
 using PowerISAInst::MaxInstSrcRegs;
 using PowerISAInst::MaxInstDestRegs;
-using PowerISAInst::MaxMiscDestRegs;
+
+// Power writes a misc register outside of the isa parser, so it can't
+// be detected by it. Manually add it here.
+const int MaxMiscDestRegs = PowerISAInst::MaxMiscDestRegs + 1;
 
 typedef uint8_t RegIndex;
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to