diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/power/registers.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/power/registers.hh b/src/arch/power/registers.hh index 2d09677b2..723d664d2 100644 --- a/src/arch/power/registers.hh +++ b/src/arch/power/registers.hh @@ -38,7 +38,10 @@ namespace PowerISA { 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; |