mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-08 23:48:18 +01:00
backend_x64: Use a reference to BlockOfCode instead of a pointer
This commit is contained in:
parent
8931ee346b
commit
68f46c8334
27 changed files with 1331 additions and 1331 deletions
|
|
@ -44,21 +44,21 @@ static void EmitMixColumns(std::array<Argument, 3> args, EmitContext& ctx, Block
|
|||
void EmitX64::EmitAESInverseMixColumns(EmitContext& ctx, IR::Inst* inst) {
|
||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||
|
||||
if (code->DoesCpuSupport(Xbyak::util::Cpu::tAESNI)) {
|
||||
if (code.DoesCpuSupport(Xbyak::util::Cpu::tAESNI)) {
|
||||
const Xbyak::Xmm operand = ctx.reg_alloc.UseXmm(args[0]);
|
||||
const Xbyak::Xmm result = ctx.reg_alloc.ScratchXmm();
|
||||
|
||||
code->aesimc(result, operand);
|
||||
code.aesimc(result, operand);
|
||||
|
||||
ctx.reg_alloc.DefineValue(inst, result);
|
||||
} else {
|
||||
EmitMixColumns(args, ctx, *code, inst, Common::InverseMixColumns);
|
||||
EmitMixColumns(args, ctx, code, inst, Common::InverseMixColumns);
|
||||
}
|
||||
}
|
||||
|
||||
void EmitX64::EmitAESMixColumns(EmitContext& ctx, IR::Inst* inst) {
|
||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||
EmitMixColumns(args, ctx, *code, inst, Common::MixColumns);
|
||||
EmitMixColumns(args, ctx, code, inst, Common::MixColumns);
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::BackendX64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue