One idea would be to have a structure of function pointers for each
CPU that gets runtime patched into the right places,
similar to how we do some of the MMU fixups.

Sounds good to me :-)

Except the indirect jump/call is almost certainly
never predicted - so will be slow.

What indirect jump?  He said "runtime patched" :-)

Also, that "slow" is largely a myth.


Segher

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to