On 11/20/19 9:33 AM, Laurent Vivier wrote: > Le 20/11/2019 à 05:48, Taylor Simpson a écrit : >> For the general DEBUG_HEX messages, I think the trace infrastructure isn't >> quite what I'm looking for. >> >> Here's a sample of what it prints >> Start packet: pc = 0x4002f0 >> Packet committed: pc = 0x4002f0 >> Regs written >> r18 = -69420 (0xfffef0d4) >> r19 = -69412 (0xfffef0dc) >> Stores >> memd[0xfffef0b0] = 0 (0x0000000000000000) >> Next PC = 0x4002f8 >> Exec counters: pkt = 17, insn = 24, hvx = 0
For something like this, I'd keep DEBUG_HEX. >> if (qemu_loglevel_maks(CPU_LOG_EXEC)) { CPU_LOG_EXEC already has a specific structure, listing the TranslationBlocks that are executed. It shouldn't be hijacked for something else. If you really want a runtime flag for this, we should add a new CPU_LOG_* flag. r~