Yet more logging

This commit is contained in:
Cacodemon345
2025-09-15 12:34:34 +06:00
parent 97ab7a8ce8
commit d824fc36df
10 changed files with 34 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
#include "codegen_ops_mmx_loadstore.h"
#include "codegen_ops_helpers.h"
extern void codegen_print_mmx(void);
extern void codegen_print_mmx(const char* str);
uint32_t
ropMOVD_r_d(codeblock_t *block, ir_data_t *ir, UNUSED(uint8_t opcode), uint32_t fetchdat, uint32_t op_32, uint32_t op_pc)
@@ -38,6 +38,7 @@ ropMOVD_r_d(codeblock_t *block, ir_data_t *ir, UNUSED(uint8_t opcode), uint32_t
uop_MOVZX(ir, IREG_MM(dest_reg), IREG_temp0);
}
uop_LOAD_FUNC_ARG_IMM(ir, 0, (uintptr_t)__func__);
uop_CALL_FUNC(ir, codegen_print_mmx);
return op_pc + 1;
}
@@ -65,6 +66,7 @@ ropMOVD_d_r(codeblock_t *block, ir_data_t *ir, UNUSED(uint8_t opcode), uint32_t
uop_MEM_STORE_REG(ir, ireg_seg_base(target_seg), IREG_eaaddr, IREG_temp0);
}
uop_LOAD_FUNC_ARG_IMM(ir, 0, (uintptr_t)__func__);
uop_CALL_FUNC(ir, codegen_print_mmx);
return op_pc + 1;
}
@@ -88,6 +90,7 @@ ropMOVQ_r_q(codeblock_t *block, ir_data_t *ir, UNUSED(uint8_t opcode), uint32_t
uop_MEM_LOAD_REG(ir, IREG_MM(dest_reg), ireg_seg_base(target_seg), IREG_eaaddr);
}
uop_LOAD_FUNC_ARG_IMM(ir, 0, (uintptr_t)__func__);
uop_CALL_FUNC(ir, codegen_print_mmx);
return op_pc + 1;
}
@@ -112,6 +115,7 @@ ropMOVQ_q_r(codeblock_t *block, ir_data_t *ir, UNUSED(uint8_t opcode), uint32_t
uop_MEM_STORE_REG(ir, ireg_seg_base(target_seg), IREG_eaaddr, IREG_MM(src_reg));
}
uop_LOAD_FUNC_ARG_IMM(ir, 0, (uintptr_t)__func__);
uop_CALL_FUNC(ir, codegen_print_mmx);
return op_pc + 1;
}