Little opcodes behave differently on desktop and embedded PowerPC cores.
In order to reflect those differences, let's add some #ifdef code to emulate.c.
We could probably also handle them in the core specific emulation files, but I
would prefer to reuse as much code as possible.
Signed-off-by:
On Fri, 2009-10-09 at 13:57 -0700, Hollis Blanchard wrote:
+#ifdef CONFIG_PPC64
+#ifdef DEBUG_EMUL
+ printk(KERN_INFO mtDEC: %x\n, vcpu-arch.dec);
+#endif
+ /* POWER4+ triggers a dec interrupt if the value is 0 */
+ if (vcpu-arch.dec 0x8000) {
+
Little opcodes behave differently on desktop and embedded PowerPC cores.
In order to reflect those differences, let's add some #ifdef code to emulate.c.
We could probably also handle them in the core specific emulation files, but I
would prefer to reuse as much code as possible.
Signed-off-by: