From 99904fb22956410f71f918952c1403379dc5d2b3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Apr 2021 16:54:41 +0100 Subject: [PATCH] move Regfile enums here --- src/openpower/consts.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2