Skip to content

Commit

Permalink
workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Sep 29, 2023
1 parent 903172e commit 699c5a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void jit_power_emitter::emit_isa(const std::vector<size_t> &in_vec_idxs, const s
// h->stp(h->x9, h->x10, pre_ptr(h->sp, -16));
// //h->sub(h->sp, h->sp, 16);

constexpr Xbyak_aarch64::Operand::Code save_gpr_regs[] = {
static constexpr Xbyak_aarch64::Operand::Code save_gpr_regs[] = {
Xbyak_aarch64::Operand::X0, Xbyak_aarch64::Operand::X1,
Xbyak_aarch64::Operand::X2, Xbyak_aarch64::Operand::X3,
Xbyak_aarch64::Operand::X4, Xbyak_aarch64::Operand::X5,
Expand All @@ -302,7 +302,7 @@ void jit_power_emitter::emit_isa(const std::vector<size_t> &in_vec_idxs, const s
};


const size_t save_gpr_regs_size = sizeof(save_gpr_regs) / sizeof(save_gpr_regs[0]);
static constexpr size_t save_gpr_regs_size = sizeof(save_gpr_regs) / sizeof(save_gpr_regs[0]);
const int32_t xreg_len = 8;
//const size_t preserved_stack_size = xreg_len * (2 + save_gpr_regs_size);

Expand Down
4 changes: 3 additions & 1 deletion src/plugins/intel_cpu/src/emitters/aarch64/jit_emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void jit_emitter::emitter_preamble(const std::vector<size_t>& in_idxs,

if (!entry_map_.empty()) {
// last aux_gpr_idx is for p_table, we can use aux_gpr_idxs from idx 0 for other purpose
p_table = Xbyak_aarch64::XReg(aux_gpr_idxs[aux_gpr_idxs.size() - 1]);
//p_table = Xbyak_aarch64::XReg(aux_gpr_idxs[aux_gpr_idxs.size() - 1]);
// TODO: debug: hardcode
p_table = Xbyak_aarch64::XReg(26);
aux_gpr_idxs.erase(aux_gpr_idxs.end() - 1);
}

Expand Down

0 comments on commit 699c5a9

Please sign in to comment.