mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-13 04:36:57 +00:00
jit: add detailed logging for ARM32 instruction registration
This commit is contained in:
parent
9341e8d4ee
commit
15938b667b
2 changed files with 19 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const cha
|
|||
}
|
||||
|
||||
++decoder->instruction_count;
|
||||
arm32_log_instruction_info(info);
|
||||
|
||||
/* TODO(GloriousTacoo:jit): Add instruction to lookup table. */
|
||||
}
|
||||
|
|
@ -131,4 +132,19 @@ 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
|
||||
|
|
|
|||
|
|
@ -48,5 +48,7 @@ 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
|
||||
#endif // POUND_JIT_DECODER_ARM32_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue