From 81e11b2406ed9d1a083adf96637435f061e56e29 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 30 May 2018 09:27:09 -0400 Subject: [PATCH] x64Emitter: Amend parameter ordering for WriteModRM()'s prototype The definition of the function uses the ordering {mod, reg, rm}, which is correct. Match the prototype to this, so that the parameter list isn't misleading. --- Source/Core/Common/x64Emitter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/x64Emitter.h b/Source/Core/Common/x64Emitter.h index 6916883d89..57bfc73d4f 100644 --- a/Source/Core/Common/x64Emitter.h +++ b/Source/Core/Common/x64Emitter.h @@ -342,7 +342,7 @@ private: void CheckFlags(); void Rex(int w, int r, int x, int b); - void WriteModRM(int mod, int rm, int reg); + void WriteModRM(int mod, int reg, int rm); void WriteSIB(int scale, int index, int base); void WriteSimple1Byte(int bits, u8 byte, X64Reg reg); void WriteSimple2Byte(int bits, u8 byte1, u8 byte2, X64Reg reg);