From 41f509873d5a13c21835df6908a4de06835ed11e Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 16 Jan 2016 21:40:01 +0100 Subject: [PATCH] x86emitter: extend xIndirect32orLess to support 64 bits It would be renamed later to avoid conflict with pending updates --- common/include/x86emitter/x86types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/include/x86emitter/x86types.h b/common/include/x86emitter/x86types.h index 9e9761f8a5..e539a20467 100644 --- a/common/include/x86emitter/x86types.h +++ b/common/include/x86emitter/x86types.h @@ -831,7 +831,7 @@ template< typename T > void xWrite( T val ); typedef xIndirect xIndirect8; // -------------------------------------------------------------------------------------- - // xIndirect32orLass - base class 32, 16, and 8 bit operand types + // xIndirect32orLess - base class 64, 32, 16, and 8 bit operand types // -------------------------------------------------------------------------------------- class xIndirect32orLess : public xIndirectVoid { @@ -844,6 +844,7 @@ template< typename T > void xWrite( T val ); xIndirect32orLess( const xIndirect8& src ) : _parent( src ) { m_OpSize = src.GetOperandSize(); } xIndirect32orLess( const xIndirect16& src ) : _parent( src ) { m_OpSize = src.GetOperandSize(); } xIndirect32orLess( const xIndirect32& src ) : _parent( src ) { m_OpSize = src.GetOperandSize(); } + xIndirect32orLess( const xIndirect64& src ) : _parent( src ) { m_OpSize = src.GetOperandSize(); } uint GetOperandSize() const { return m_OpSize; }