Skip to content

Commit

Permalink
drcbex64,drcbex86: avoid deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pmackinlay committed Apr 12, 2024
1 parent e0dc885 commit 5b50e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/devices/cpu/drcbex64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ void drcbe_x64::reset()
a.bind(a.newNamedLabel("entry_point"));

FuncDetail entry_point;
entry_point.init(FuncSignatureT<uint32_t, uint8_t *, x86code *>(CallConvId::kHost), Environment::host());
entry_point.init(FuncSignature::build<uint32_t, uint8_t *, x86code *>(CallConvId::kHost), Environment::host());

FuncFrame frame;
frame.init(entry_point);
Expand Down Expand Up @@ -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 &param, std::function<bool(Assembler &a, Operand const &dst, be_parameter const &src)> optimize)
{
bool const is64 = dst.size() == 8;
bool const is64 = dst.x86RmSize() == 8;

if (param.is_immediate())
{
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/drcbex86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ void drcbe_x86::reset()
a.bind(a.newNamedLabel("entry_point"));

FuncDetail entry_point;
entry_point.init(FuncSignatureT<uint32_t, x86code *>(CallConvId::kHost), Environment::host());
entry_point.init(FuncSignature::build<uint32_t, x86code *>(CallConvId::kHost), Environment::host());

FuncFrame frame;
frame.init(entry_point);
Expand Down

0 comments on commit 5b50e61

Please sign in to comment.