From 5b50e61af36aeb93b7e2a8c987c61d68bca2ed56 Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Fri, 12 Apr 2024 09:51:00 +0700 Subject: [PATCH] drcbex64,drcbex86: avoid deprecated functions --- src/devices/cpu/drcbex64.cpp | 4 ++-- src/devices/cpu/drcbex86.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/drcbex64.cpp b/src/devices/cpu/drcbex64.cpp index a8abda5a5d43f..96f4b9142b43b 100644 --- a/src/devices/cpu/drcbex64.cpp +++ b/src/devices/cpu/drcbex64.cpp @@ -869,7 +869,7 @@ void drcbe_x64::reset() a.bind(a.newNamedLabel("entry_point")); FuncDetail entry_point; - entry_point.init(FuncSignatureT(CallConvId::kHost), Environment::host()); + entry_point.init(FuncSignature::build(CallConvId::kHost), Environment::host()); FuncFrame frame; frame.init(entry_point); @@ -1036,7 +1036,7 @@ void drcbe_x64::get_info(drcbe_info &info) void drcbe_x64::alu_op_param(Assembler &a, Inst::Id const opcode, Operand const &dst, be_parameter const ¶m, std::function optimize) { - bool const is64 = dst.size() == 8; + bool const is64 = dst.x86RmSize() == 8; if (param.is_immediate()) { diff --git a/src/devices/cpu/drcbex86.cpp b/src/devices/cpu/drcbex86.cpp index 3f5e4346dea7f..0233ddef33b73 100644 --- a/src/devices/cpu/drcbex86.cpp +++ b/src/devices/cpu/drcbex86.cpp @@ -668,7 +668,7 @@ void drcbe_x86::reset() a.bind(a.newNamedLabel("entry_point")); FuncDetail entry_point; - entry_point.init(FuncSignatureT(CallConvId::kHost), Environment::host()); + entry_point.init(FuncSignature::build(CallConvId::kHost), Environment::host()); FuncFrame frame; frame.init(entry_point);