|
|
|
@ -1221,17 +1221,17 @@ struct Regs {
|
|
|
|
|
// Used for debugging purposes, so performance is not an issue here
|
|
|
|
|
static std::string GetCommandName(int index);
|
|
|
|
|
|
|
|
|
|
static inline size_t NumIds() {
|
|
|
|
|
static constexpr size_t NumIds() {
|
|
|
|
|
return sizeof(Regs) / sizeof(u32);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
u32& operator [] (int index) const {
|
|
|
|
|
u32* content = (u32*)this;
|
|
|
|
|
const u32& operator [] (int index) const {
|
|
|
|
|
const u32* content = reinterpret_cast<const u32*>(this);
|
|
|
|
|
return content[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
u32& operator [] (int index) {
|
|
|
|
|
u32* content = (u32*)this;
|
|
|
|
|
u32* content = reinterpret_cast<u32*>(this);
|
|
|
|
|
return content[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|