aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-04-10 21:50:06 -0300
committerGitHub <noreply@github.com>2024-04-10 21:50:06 -0300
commita8f7ababb594bd20aebe6192c465559d1b2b8f73 (patch)
treef16bf6937655aa9f506abb935a9d2450aa1d8b43
parent22e3ff06b51db0fa72e9f2dc2aee395a5d1aa2df (diff)
Revert "Update StoreConstantToMemory to match StoreConstantToAddress on value…" (#6649)1.1.1277
This reverts commit 22e3ff06b51db0fa72e9f2dc2aee395a5d1aa2df.
-rw-r--r--src/Ryujinx.HLE/HOS/Tamper/CodeEmitters/StoreConstantToMemory.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Ryujinx.HLE/HOS/Tamper/CodeEmitters/StoreConstantToMemory.cs b/src/Ryujinx.HLE/HOS/Tamper/CodeEmitters/StoreConstantToMemory.cs
index 09795c9f..27a99bb6 100644
--- a/src/Ryujinx.HLE/HOS/Tamper/CodeEmitters/StoreConstantToMemory.cs
+++ b/src/Ryujinx.HLE/HOS/Tamper/CodeEmitters/StoreConstantToMemory.cs
@@ -15,8 +15,7 @@ namespace Ryujinx.HLE.HOS.Tamper.CodeEmitters
private const int OffsetRegisterIndex = 6;
private const int ValueImmediateIndex = 8;
- private const int ValueImmediateSize8 = 8;
- private const int ValueImmediateSize16 = 16;
+ private const int ValueImmediateSize = 16;
public static void Emit(byte[] instruction, CompilationContext context)
{
@@ -32,8 +31,7 @@ namespace Ryujinx.HLE.HOS.Tamper.CodeEmitters
Register sourceRegister = context.GetRegister(instruction[AddressRegisterIndex]);
byte incrementAddressRegister = instruction[IncrementAddressRegisterIndex];
byte useOffsetRegister = instruction[UseOffsetRegisterIndex];
- int valueImmediateSize = operationWidth <= 4 ? ValueImmediateSize8 : ValueImmediateSize16;
- ulong immediate = InstructionHelper.GetImmediate(instruction, ValueImmediateIndex, valueImmediateSize);
+ ulong immediate = InstructionHelper.GetImmediate(instruction, ValueImmediateIndex, ValueImmediateSize);
Value<ulong> storeValue = new(immediate);
Pointer destinationMemory;