jit: inline ARM32 instruction logging and remove redundant traces

This commit is contained in:
ramenrrami 2025-10-15 10:54:53 +02:00
parent 44d6c2e837
commit 8e17126738
2 changed files with 7 additions and 16 deletions

View file

@ -85,7 +85,13 @@ void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const cha
}
++decoder->instruction_count;
arm32_log_instruction_info(info);
LOG_TRACE("========================================");
LOG_TRACE("Instruction Registered: %s", info->name);
LOG_TRACE("Mask: 0x%08X", info->mask);
LOG_TRACE("Expected: 0x%08X", info->expected);
LOG_TRACE("Priority: %d", info->priority);
LOG_TRACE("========================================");
/* TODO(GloriousTacoo:jit): Add instruction to lookup table. */
}
@ -132,19 +138,5 @@ void arm32_parse_bitstring(const char* bitstring, uint32_t* mask, uint32_t* expe
}
}
}
void arm32_log_instruction_info(const arm32_instruction_info_t* info)
{
if (info == nullptr)
{
LOG_TRACE("Attempted to log a null instruction info pointer!");
return;
}
LOG_TRACE("========================================");
LOG_TRACE("Instruction Registered: %s", info->name);
LOG_TRACE("Mask: 0x%08X", info->mask);
LOG_TRACE("Expected: 0x%08X", info->expected);
LOG_TRACE("Priority: %d", info->priority);
LOG_TRACE("========================================");
}
} // namespace pound::jit::decoder

View file

@ -48,7 +48,6 @@ void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, arm32_opc
arm32_handler_fn handler);
void arm32_ADD_imm_handler(arm32_decoder_t* decoder, arm32_instruction_t instruction);
void arm32_log_instruction_info(const arm32_instruction_info_t* info);
} // namespace pound::jit::decoder
#endif // POUND_JIT_DECODER_ARM32_H