This register index was for an integer register which was just something to return when the result should be thrown away. That's basically what the zero register is/could already be used for. Replace INTREG_DUMMY with INTREG_ZERO. Also, change the type used for an index in SVE memory instructions from IntRegIndex to RegIndex, since it's not actually storing an integer register index, and g++ gets upset when you try to compare one against a value which is out of range for that enum. Change-Id: Ibdc488a2b55162a5f9e3d355126f6c48a99272a9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49223 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>