From: Luke Kenneth Casson Leighton Date: Fri, 23 Apr 2021 15:54:41 +0000 (+0100) Subject: move Regfile enums here X-Git-Tag: 0.0.1~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99904fb22956410f71f918952c1403379dc5d2b3;p=openpower-isa.git move Regfile enums here --- diff --git a/src/openpower/consts.py b/src/openpower/consts.py index 31fdb136..91a9b502 100644 --- a/src/openpower/consts.py +++ b/src/openpower/consts.py @@ -288,6 +288,7 @@ class StateRegsEnum: PC = 0 MSR = 1 SVSTATE = 2 + N_REGS = 3 # maximum number of regs # Fast SPRs Regfile class FastRegsEnum: @@ -306,3 +307,4 @@ class XERRegsEnum: SO=0 # this is actually 2-bit but we ignore 1 bit of it CA=1 # CA and CA32 OV=2 # OV and OV32 + N_REGS = 3 # maximum number of regs