Fix vector fetch

This commit is contained in:
Liam 2022-11-14 23:45:48 -05:00
parent 6a14e6e73c
commit 0df7dccf93

View file

@ -260,13 +260,13 @@ void Jit::SetRegisters(const std::array<std::uint64_t, 31>& value) {
Vector Jit::GetVector(std::size_t index) const {
auto& vec = impl->VecRegs();
return {vec[index], vec[index + 1]};
return {vec[index * 2], vec[index * 2 + 1]};
}
void Jit::SetVector(std::size_t index, Vector value) {
auto& vec = impl->VecRegs();
vec[index] = value[0];
vec[index + 1] = value[1];
vec[index * 2] = value[0];
vec[index * 2 + 1] = value[1];
}
std::array<Vector, 32> Jit::GetVectors() const {