3 ms·
Nobody is going to be patching calling programs like this. There may be OS emulation in machine mode (saving and restoring the register file) to pretend to be
by pclmulqdq 4y ago
Nobody is going to be patching calling programs like this. There may be OS emulation in machine mode (saving and restoring the register file) to pretend to be a "generic" RISC-V.
- StillBored 4y agoI don't think he is suggesting patching individual programs PPC for example simply faults and traps to the OS for any number of illegal instruction or invalid alignment situations (which may vary based on core implementation). Then the kernel looks at the faulting instruction, emulates it, and resumes the program. Its absolutely terrible for perf because all the internal state has to be serialized to the architecturally visible state in order to update it, and resumes.
- addaon 4y agoNope, I was very much suggesting the former. The PPC approach works, but it has significant performance costs over and above instruction emulation. I've shipped PPC software that you may have used that uses both approaches, as appropriate.
- StillBored 4y agoEek, at that point you might just as well try and ship an IR with a JIT/AOT type pass during install, first run, etc. Its possible we know each other IRL... lol
- addaon 4y ago> Nobody is going to be patching calling programs like this. Oh the things I've shipped...