Lines Matching refs:emu
761 disasm(struct emu *emu) in disasm() argument
763 uint32_t sizedwords = emu->sizedwords; in disasm()
769 emu_init(emu); in disasm()
773 disasm_instr(emu->instrs, emu->gpr_regs.pc); in disasm()
774 emu_step(emu); in disasm()
778 emu_run_bootstrap(emu); in disasm()
781 if (emu_get_reg64(emu, &CP_LPAC_SQE_INSTR_BASE)) { in disasm()
782 lpac_offset = emu_get_reg64(emu, &CP_LPAC_SQE_INSTR_BASE) - in disasm()
783 emu_get_reg64(emu, &CP_SQE_INSTR_BASE); in disasm()
788 setup_packet_table(emu->jmptbl, ARRAY_SIZE(emu->jmptbl)); in disasm()
789 setup_labels(emu->instrs, emu->sizedwords); in disasm()
794 emu_fini(emu); in disasm()
795 emu_init(emu); in disasm()
798 disasm_instr(emu->instrs, emu->gpr_regs.pc); in disasm()
799 emu_step(emu); in disasm()
805 disasm_instr(emu->instrs, i); in disasm()
815 emu_fini(emu); in disasm()
817 emu->lpac = true; in disasm()
818 emu->instrs += lpac_offset; in disasm()
819 emu->sizedwords -= lpac_offset; in disasm()
821 emu_init(emu); in disasm()
822 emu_run_bootstrap(emu); in disasm()
824 setup_packet_table(emu->jmptbl, ARRAY_SIZE(emu->jmptbl)); in disasm()
825 setup_labels(emu->instrs, emu->sizedwords); in disasm()
828 for (int i = 0; i < emu->sizedwords; i++) { in disasm()
829 disasm_instr(emu->instrs, i); in disasm()
970 struct emu emu = { in main() local
976 disasm(&emu); in main()