2013年2月17日日曜日

TLMu based on QEMU-1.4.0

I have released experimental TLMu based on latest QEMU, version 1.4.0.
It is now available at github .
Please note that this is just experimental release.
I am planning to reorganize and rebase it again!

The most troubling change for me is that the CPU name of OpenRISC has been changed from or1200 to or1200-or32-cpu. I am afraid that the source code in mainline QEMU is still using "or1200" for cpu_openrisc_init() in openrisc_sim.c.

During rebasing TLMu onto the latest QEMU, I wished QEMU had been written in C++.
C++ is better than C in many points. Following points are especially applicable for current QEMU implementation. 

  • templates in C++ is much type safer than complicated C macro tricks
  • class member variables are safer and multi-instance-friendly. global variables are not.
  • native class system in C++ is safer and easy to understand than gtk-like type system. opaque pointers are dangerous.

Now even the basic software like GCC is partially written in C++, why not QEMU.

0 件のコメント:

コメントを投稿