From 7bb456f02408ee2c7078ef572aed46c4ee55d8cb Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 24 Jan 2021 23:16:43 -0800 Subject: [PATCH] arch-power: Delete unused register related constants. Change-Id: I7b2dc3a9ce29f67d304a22ab15268390fc461e4e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39680 Reviewed-by: Boris Shingarov Maintainer: Bobby R. Bruce Tested-by: kokoro --- src/arch/power/registers.hh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/arch/power/registers.hh b/src/arch/power/registers.hh index a6d28a80e..def55e308 100644 --- a/src/arch/power/registers.hh +++ b/src/arch/power/registers.hh @@ -66,11 +66,9 @@ const int NumIntArchRegs = 32; // and zero register, which doesn't actually exist but needs a number const int NumIntSpecialRegs = 9; const int NumFloatArchRegs = 32; -const int NumFloatSpecialRegs = 0; -const int NumInternalProcRegs = 0; const int NumIntRegs = NumIntArchRegs + NumIntSpecialRegs; -const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs; +const int NumFloatRegs = NumFloatArchRegs; const int NumVecRegs = 1; // Not applicable to Power // (1 to prevent warnings) const int NumVecPredRegs = 1; // Not applicable to Power @@ -80,21 +78,11 @@ const int NumMiscRegs = NUM_MISCREGS; // Semantically meaningful register indices const int ReturnValueReg = 3; -const int ArgumentReg0 = 3; -const int ArgumentReg1 = 4; -const int ArgumentReg2 = 5; -const int ArgumentReg3 = 6; -const int ArgumentReg4 = 7; -const int FramePointerReg = 31; const int StackPointerReg = 1; // There isn't one in Power, but we need to define one somewhere const int ZeroReg = NumIntRegs - 1; -const int SyscallNumReg = 0; -const int SyscallPseudoReturnReg = 3; -const int SyscallSuccessReg = 3; - enum MiscIntRegNums { INTREG_CR = NumIntArchRegs, INTREG_XER, -- 2.30.2