adding more lifters See merge request vmp2/vmdevirt!11merge-requests/12/merge
commit
ebbe93f278
@ -1 +1 @@
|
|||||||
Subproject commit 90106b0f5e748f1e67e108800ee0463bae5755e3
|
Subproject commit 7b1f815a73096ac33f41133b63d991019622de49
|
@ -0,0 +1,13 @@
|
|||||||
|
#include <vm_lifters.hpp>
|
||||||
|
|
||||||
|
namespace vm
|
||||||
|
{
|
||||||
|
lifters_t::lifter_callback_t lifters_t::writeq =
|
||||||
|
[ & ]( vm::devirt_t *rtn, const vm::instrs::code_block_t &vm_code_block, const vm::instrs::virt_instr_t &vinstr,
|
||||||
|
llvm::IRBuilder<> *ir_builder ) {
|
||||||
|
auto t1 = rtn->pop( 8 );
|
||||||
|
auto t2 = rtn->pop( 8 );
|
||||||
|
auto t3 = ir_builder->CreateIntToPtr( t1, llvm::PointerType::get( ir_builder->getInt64Ty(), 0ull ) );
|
||||||
|
ir_builder->CreateStore( t2, t3 );
|
||||||
|
};
|
||||||
|
} // namespace vm
|
Loading…
Reference in new issue