diff --git a/src/arch/riscv/regs/int.hh b/src/arch/riscv/regs/int.hh index bc2857eba6..2c12027f03 100644 --- a/src/arch/riscv/regs/int.hh +++ b/src/arch/riscv/regs/int.hh @@ -80,7 +80,7 @@ enum : RegIndex }; inline constexpr RegId - Zero(IntRegClass, _ZeroIdx), + Zero(InvalidRegClass, _ZeroIdx), Ra(IntRegClass, _RaIdx), Sp(IntRegClass, _SpIdx), Gp(IntRegClass, _GpIdx),